SSHを使用して自分のサーバーにログインできない

SSHを使用して自分のサーバーにログインできない

昨日、新しいサーバーに移行したときにrsyncを使用する必要があり、rsyncが接続できるようにRSAキーを作成し、add to trusted key in location x新しいサーバーに場所がないというエラーが表示されました。したがって、デフォルトではmv rsakey /location.xディレクトリは存在しません。 。

キーを再生成してみました。しかし、これは役に立ちませんでした。 sshやfilezillaにログインできませんscp protocol

Error: Network error: Software caused connection abort. Error: Could not connect to server

RSAキーによってエラーが発生したことはほぼ確実です。どうすれば解決できますか?しかし、私が持っているISPCPそこから修正できるように設置しました。

メモ:古いサーバーと新しいサーバーの両方でRSAキーを生成しましたが、古いサーバーにはログインできますが、新しいサーバーにはログインできません。

編集する

Ubuntu 12.04でターミネーターを使用する:

$ ssh root@server_ip
Connection closed by server_ip

編集2

完了後にmv ~/.ssh ssh_backup接続しようとしましたが、再試行しましたが、上記のエラーがRead from socket failed: Connection reset by peer発生しました。connection closed

編集3

出力ssh -vv root@server_ip

OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to my_ip_address [my_ip_address] port 22.
debug1: Connection established.
debug1: identity file /home/me/.ssh/id_rsa type -1
debug1: identity file /home/me/.ssh/id_rsa-cert type -1
debug1: identity file /home/me/.ssh/id_dsa type -1
debug1: identity file /home/me/.ssh/id_dsa-cert type -1
debug1: identity file /home/me/.ssh/id_ecdsa type -1
debug1: identity file /home/me/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze3
debug1: match: OpenSSH_5.5p1 Debian-6+squeeze3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Connection closed by my_ip_address

@mattdem場所が何であるかを忘れてしまったので、場所名を指定しました。xエラーは基本的に次のとおりです。 rsaキーを信頼できるソースの場所に移動します。おそらく/.ssh

ベストアンサー1

この問題を解決するかなり大胆な方法は、SSH資格情報を削除することです。ローカルコンピュータから:

mv ~/.ssh ssh_backup

その後、サーバーにsshを再試行すると、パスワードの入力を求められます。これで、RSA 鍵生成プロセスを再開できます。

おすすめ記事