Advertisement
Guest User

Untitled

a guest
May 2nd, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. ERROR from ssh -v bane
  2.  
  3. network@newbrobox:~/linkies/bane$ ssh -v bane
  4. OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016
  5. debug1: Reading configuration data /home/network/.ssh/config
  6. debug1: /home/network/.ssh/config line 2: Applying options for bane
  7. debug1: Reading configuration data /etc/ssh/ssh_config
  8. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  9. debug1: Connecting to 192.168.33.15 [192.168.33.15] port 22.
  10. debug1: Connection established.
  11. debug1: identity file ./networkkeypair type 1
  12. debug1: key_load_public: No such file or directory
  13. debug1: identity file ./networkkeypair-cert type -1
  14. debug1: Enabling compatibility mode for protocol 2.0
  15. debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  16. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.4
  17. debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4 pat OpenSSH* compat 0x04000000
  18. debug1: Authenticating to 192.168.33.15:22 as 'vagrant'
  19. debug1: SSH2_MSG_KEXINIT sent
  20. debug1: SSH2_MSG_KEXINIT received
  21. debug1: kex: algorithm: curve25519-sha256@libssh.org
  22. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  23. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  24. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  25. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  26. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:0qTApzrNVC1Qoi9pppZoxCkSTdGxpyOpAKD68B8KnZA
  27. debug1: Host '192.168.33.15' is known and matches the ECDSA host key.
  28. debug1: Found key in /home/network/.ssh/known_hosts:5
  29. debug1: rekey after 134217728 blocks
  30. debug1: SSH2_MSG_NEWKEYS sent
  31. debug1: expecting SSH2_MSG_NEWKEYS
  32. debug1: rekey after 134217728 blocks
  33. debug1: SSH2_MSG_NEWKEYS received
  34. debug1: SSH2_MSG_EXT_INFO received
  35. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  36. debug1: SSH2_MSG_SERVICE_ACCEPT received
  37. debug1: Authentications that can continue: publickey
  38. debug1: Next authentication method: publickey
  39. debug1: Offering RSA public key: ./networkkeypair
  40. debug1: Authentications that can continue: publickey
  41. debug1: No more authentication methods to try.
  42. Permission denied (publickey).
  43.  
  44. Vagrantfile:
  45. Vagrant.configure("2") do |config|
  46. config.vm.provision "file", source: "./networkkeypair.pub", destination: "networkkeypair.pub"
  47. config.vm.provision "shell", inline: "cat networkkeypair.pub >> .ssh/authorized_keys"
  48. config.ssh.username = "vagrant"
  49. #config.ssh.password = "vagrant"
  50. #config.ssh.keys_only = false
  51. #config.ssh.verify_host_key = false
  52. #config.ssh.insert_key = true
  53. #config.ssh.host = "192.168.33.15"
  54. config.ssh.dsa_authentication = false
  55. #config.ssh.extra_args = "-p 22"
  56. #config.ssh.private_key_path = "./networkkeypair"
  57. config.vm.define "bane" do |bane|
  58. bane.vm.box = "ubuntu/xenial64"
  59. bane.vm.box_version = "20180316.0.0"
  60. bane.vm.network "private_network", ip: "192.168.33.15"
  61. end
  62. end
  63.  
  64. Aaand my ssh-agent config
  65. Host bane
  66. HostName 192.168.33.15
  67. User vagrant
  68. IdentityFile ./networkkeypair
  69. IdentitiesOnly yes
  70. StrictHostKeyChecking no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement