2017-12-06 13 views
-2

Stack Overflow自体にはいくつかの類似の質問がありますが、scpからリモートサーバに、認証された鍵に公開鍵を追加しても、パスフレーズを要求しています

remoteというサーバーがあり、私のlocalマシンからファイルをコピーしようとしています。どちらも、Ubuntuのマシンです:localは、Ubuntuの16で、remoteは私が~/.ssh/authorized_keysremoteサーバーへの私のlocal公開鍵を追加したUbuntuの14

です。キーを追加する前に、リモートマシンへのパスワードの入力を求められましたが、今では鍵のパスフレーズの入力を求められています。

リモートマシン上で私の権限があります。

drwx------ 2 ops ops 4096 Dec 5 07:38 . 
drwxr-xr-x 5 ops ops 4096 Dec 6 02:06 .. 
-rwx------ 1 ops ops 743 Dec 5 03:56 authorized_keys 
-rw------- 1 ops ops 3326 Dec 5 04:04 id_rsa 
-rw-r--r-- 1 ops ops 751 Dec 5 04:04 id_rsa.pub 
-rwx------ 1 ops ops 444 Dec 5 06:55 known_hosts 

は、これは私の冗長sshのログです:

OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g 1 Mar 2016 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug1: Connecting to gateway [172.16.24.1] port 22. 
debug1: Connection established. 
debug1: identity file /home/ops/.ssh/id_rsa type 1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_rsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_dsa type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_dsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_ecdsa type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_ecdsa-cert type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_ed25519 type -1 
debug1: key_load_public: No such file or directory 
debug1: identity file /home/ops/.ssh/id_ed25519-cert type -1 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7 
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7 pat OpenSSH_6.6.1* compat 0x04000000 
debug1: Authenticating to gateway:22 as 'ops' 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug1: kex: algorithm: [email protected] 
debug1: kex: host key algorithm: ecdsa-sha2-nistp256 
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none 
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:TgaQlbi1L+JBQBbqhJZHIpDnXtJGZtw5y3r2fj7qFAM 
debug1: Host 'gateway' is known and matches the ECDSA host key. 
debug1: Found key in /home/ops/.ssh/known_hosts:2 
debug1: rekey after 134217728 blocks 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug1: rekey after 134217728 blocks 
debug1: SSH2_MSG_NEWKEYS received 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug1: Authentications that can continue: publickey,password 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /home/ops/.ssh/id_rsa 
debug1: Server accepts key: pkalg ssh-rsa blen 535 
Enter passphrase for key '/home/ops/.ssh/id_rsa': 

誰かがこれを助けてください。

+1

私はこのプロンプトが_local_秘密鍵のパスフレーズのためだと思います。 SSH接続の鍵を解読し、ハンドシェイク処理を開始する必要があります。ローカルマシン上でキーを生成したときに設定したかもしれません。 –

+0

はい私は 'local'の鍵を作成している間にパスワードを設定しました。私はパスワードなしで再度生成しますか?私はこれが問題ではないと思います。なぜなら、別のペアのマシンを同じようにセットアップするからです。 –

+0

パスフレーズなしで鍵を再生成しました。ありがとう。 –

答えて

0

あなたのキーがパスワードで保護されていることを確かめてください。それはサーバーにログインしないでロックを解除するように求めています。

関連する問題