ssh -p 22230 -o StrictHostKeyChecking=no -o PreferredAuthentications=password root@192.168.1.16 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is SHA256:o9Au/huOZvnNvwYUpHsDSaKTdDEPd7YTuANfaZCk8LM. Please contact your system administrator. Add correct host key in /Users/jaryoung/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/jaryoung/.ssh/known_hosts:24 Password authentication is disabled to avoid man-in-the-middle attacks. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. UpdateHostkeys is disabled because the host key is not trusted. root@192.168.1.16: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Please contact your system administrator. Add correct host key in /Users/jaryoung/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/jaryoung/.ssh/known_hosts:24 Password authentication is disabled to avoid man-in-the-middle attacks.
ssh-copy-id -f -i ~/.ssh/id_rsa.pub -p 22230 vagrant@192.168.1.16 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/Users/jaryoung/.ssh/id_rsa.pub" vagrant@192.168.1.16's password: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Number of key(s) added: 1
Now try logging into the machine, with: "ssh -p '22230' 'vagrant@192.168.1.16'" and check to make sure that only the key(s) you wanted were added.