ファイルが見つからないため、sshでパスワードを求めます。

ファイルが見つからないため、sshでパスワードを求めます。

私はSSHキーに触れていました。名前付きサーバーへの接続に使用される.pubファイルとSSHファイルを転送しましたsaleslist

今そこに移動したので、~/.ssh/バーと一般的なバーがすべてそこにあります。

ただし、登録された展開アカウントでもSSHを介してサーバーに接続しようとすると、パスワードの入力を求められます--disabled-password

私はこれを実行し、ssh -v sebastian@ip次のように返されました。

debug1: Found key in /Users/Sebastian/.ssh/known_hosts:43
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/Sebastian/.ssh/github_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: /Users/Sebastian/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /Users/Sebastian/.ssh/id_dsa
debug1: Trying private key: /Users/Sebastian/.ssh/id_ecdsa
debug1: Trying private key: /Users/Sebastian/.ssh/id_ed25519
debug1: Next authentication method: password

この問題をどのように解決できるかを知っている人はいますか?

ベストアンサー1

公開鍵がアップロードされ、リモートホストで利用可能であることを確認してください~/.ssh/authorized_keys

~/.sshまた、ディレクトリの権限が700(drwx-----)と600(-rw-----)であることを確認してください~/.ssh/authorized_keys

おすすめ記事