もう一度、sshの問題について質問があります。
組み込みシステム(ディスプレイなし、キーボードなし)では、私の唯一のログインインターフェイスはsshでした。Telnetも無効になっています。(私は現在、少しの希望でそれを有効にしようとしています...)
現時点での私の唯一のやりとりは、ping
回答を受け取り、 smb://
!を介して共有ファイルを閲覧することです。
sshの答えは常に:
$ ssh -vvvvl root 192.168.0.3
OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
debug1: Connection established.
debug1: identity file /home/simon/.ssh/id_rsa type -1
debug1: identity file /home/simon/.ssh/id_rsa-cert type -1
debug1: identity file /home/simon/.ssh/id_dsa type -1
debug1: identity file /home/simon/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8
debug1: match: OpenSSH_4.3p2 Debian-8 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.5p1 Debian-4ubuntu4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
ただし、hddに直接アクセスするには、デバイスから引き出して、別のマシンに接続しているときにファイルを操作します。
ログオフしてロックアウトされる前の最後の手順の1つにsudo rm /etc/ssh/*host*key*
続いて、が見つからdpkg-reconfigure openssh-server
なかったために失敗しました。ですから、問題はキーが削除されdpkg-reconfigure
ていることだと思います。
sshd
私の質問は今です:ターゲットシステムでコマンドを実行せずにオフショアでキーを作成して提供するにはどうすればよいsshd
ですか、またはキーなしでログインできるようにするにはどうすればよいですか?
何かあったら助けてくれてありがとう..?!