![送信用のCompute Engine Ubuntu VMでのssh-add](https://rvso.com/image/1438156/%E9%80%81%E4%BF%A1%E7%94%A8%E3%81%AECompute%20Engine%20Ubuntu%20VM%E3%81%A7%E3%81%AEssh-add.png)
id_rsa
Ubuntu GCE に移動したリモート サーバーに scp 経由で接続するために使用するキーがあります。キー ( id_rsa
) をメイン ユーザー.ssh
フォルダーにドロップし、chmod 600 を実行しましたが、ssh-add
取得できません。
sftp -v -o 'IdentityFile2 id_rsa' user@domain
私に与えてくれるもの:
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /home/my_user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to remotesite.com [66.xx.xx.xx] port 22.
debug1: Connection established.
debug1: identity file id_rsa type -1
debug1: identity file id_rsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
ssh_exchange_identification: read: Connection reset by peer
Couldn't read packet: Connection reset by peer
ssh-add id_rsa
:
SSH_AGENT_FAILURE
Could not add identity: id_rsa
リモート IDE と SSH クライアントをサーバーに接続できるようにしました。セキュリティは気に入っていますが、sshd_conf
開けてはいけないドアを開けてしまったり、現在機能しているキーや接続を台無しにしてしまったりする可能性があるため、ファイルをジャックし始めるのは少し不安です。何かアドバイスはありますか?