私はそれだけで2日間戦う。私は多くの同様のポストを参照してくださいしかし私は私の問題を解決することはできません。汚れた+許可が拒否されたミント
私はメインのOS(4.4.0-21-一般的な#37-UbuntuのSMP月4月18日夜06時33分37秒UTC 2016 x86_64のx86_64でのx86_64のGNU/Linu)とミント18持って、今私が持っている:
のvirtualbox 5.0.40 r115130
ベイグラント1.8.4 +浮浪者-vbguest(0.14.2)
Vmが正しくインストールされています。私は "放浪のssh" を実行しようとすると、私は次を参照してください。
Permission denied (publickey)
マイ設定:
Vagrant.configure(2) do |config|
config.vm.box = "debian/jessie64"
config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
config.vm.network "private_network", ip: "192.168.56.106"
config.vm.synced_folder '.', '/home/vagrant'
end
Synced_folderが正しい動作します。
浮浪者のssh-config設定
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /home/wiktor/NetBeansProjects/PhpProject1/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
そして: のssh -i /home/wiktor/NetBeansProjects/PhpProject1/.vagrant/machines/default/virtualbox/private_key -v浮浪者はlocalhost @ -p 2222
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 localhost [127.0.0.1] port 2222.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/NetBeansProjects/PhpProject1/.vagrant/machines/default/virtualbox/private_key type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/NetBeansProjects/PhpProject1/.vagrant/machines/default/virtualbox/private_key-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/identity type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/identity-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/wiktor/.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.7p1 Debian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to localhost:2222 as 'vagrant'
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:bfFoWuZbyskLe9SNF07Qkt6biJYCFhn83Yxy4RAIiGw
debug1: Host '[localhost]:2222' is known and matches the ECDSA host key.
debug1: Found key in /home/wiktor/.ssh/known_hosts:1
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
debug1: Next authentication method: publickey
debug1: Trying private key: /home/wiktor/NetBeansProjects/PhpProject1/.vagrant/machines/default/virtualbox/private_key
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/wiktor/.ssh/identity
debug1: Trying private key: /home/wiktor/.ssh/id_rsa
debug1: Trying private key: /home/wiktor/.ssh/id_dsa
debug1: Trying private key: /home/wiktor/.ssh/id_ecdsa
debug1: Trying private key: /home/wiktor/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).
このエラーは分かりません。おそらく、迷惑行為者は公開鍵を生成できません。
VirtualBoxでVMに接続し、 "ls -la/home/vagrant"を実行した後、ディレクトリ ".ssh"が表示されませんでした。あれは正しいですか?
私はvirtualbox 5.1と迷惑メール1.8.5を実行しようとしましたが、私は同じエラーがあります。
誤った公開鍵/秘密鍵の後にWindows10を使用したとき、これは迷惑メールユーザにパスワードを要求しました。 オンミントでエラーを返します。ゲストOSやメインOS上でchmodを変更して/ etc/ssh/sshd_configを編集しました。それは助けにはなりませんでした。
誰でも手助けできますか?
本当に?できます。私はあなたを愛しています:)ありがとう。 – viko
@vikoあなたは大歓迎です – tux