Sample Header Ad - 728x90

ssh-ing to remote machine connects me back to local machine?

1 vote
0 answers
283 views
I have two computers: my laptop, vagrant, and my desktop tower, frontier. My username for both is joseph. I can ssh just fine from frontier to vagrant, but I have never been able to do it the other way around. I also have not been able to figure out why. I tried every solution I could find, like restarting sshd, reinstalling ssh-daemon, even just reinstalling the OS, and more. No luck. Today, I try it again, and it appears to work. However, it just connects me back to my laptop! Running ssh -v joseph@frontier from my laptop gives me this (some information redacted to avoid revealing personal information): OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to frontier [IP-address] port 22. debug1: Connection established. debug1: identity file /home/joseph/.ssh/id_rsa type -1 debug1: identity file /home/joseph/.ssh/id_rsa-cert type -1 debug1: identity file /home/joseph/.ssh/id_dsa type -1 debug1: identity file /home/joseph/.ssh/id_dsa-cert type -1 debug1: identity file /home/joseph/.ssh/id_ecdsa type -1 debug1: identity file /home/joseph/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/joseph/.ssh/id_ed25519 type -1 debug1: identity file /home/joseph/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6 pat OpenSSH_6.6.1* compat 0x04000000 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA [redacted] debug1: Host 'frontier' is known and matches the ECDSA host key. debug1: Found key in /home/joseph/.ssh/known_hosts:2 debug1: ssh_ecdsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received 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: Trying private key: [private-key: redacted] debug1: Trying private key: [private-key: redacted] debug1: Trying private key: [private-key: redacted] debug1: Trying private key: [private-key: redacted] debug1: Next authentication method: password joseph@frontier's password: Entering my password logs me into a prompt, which is on my local machine!! As in I have somehow ssh-ed from my laptop back to my laptop! This is not making any sense to me. My last attempt to fix this (on my own) resulted in me accidentally bricking my desktop OS. I am running Linux Mint 17.1 on my laptop and the latest version of Manjaro on my desktop tower. I have never encountered anything like this. If there is any other information I can provide, please comment it below and I will get it up ASAP. Thanks in advance!
Asked by Joseph Farah (395 rep)
Feb 17, 2016, 06:59 AM