ssh-ing 到远程计算机将我连接回本地计算机?

ssh-ing 到远程计算机将我连接回本地计算机?

我有两台计算机:笔记本电脑vagrant和台式机frontier。我的用户名都是joseph.我可以从到ssh很好,但我从来没有能够以相反的方式做到这一点。我也一直无法弄清楚为什么。我尝试了所有能找到的解决方案,比如重新启动、重新安装、甚至只是重新安装操作系统等等。没有运气。frontiervagrantsshdssh-daemon

今天,我再次尝试,似乎有效。然而,它只是将我连接回我的笔记本电脑!

从我的笔记本电脑运行ssh -v joseph@frontier会得到以下信息(一些信息被编辑以避免泄露个人信息):

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 [email protected] none
debug1: kex: client->server aes128-ctr [email protected] 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: 

输入密码后,我会进入提示符,该提示符位于我的本地计算机上!就像我以某种方式ssh-ed从我的笔记本电脑回到我的笔记本电脑一样!

这对我来说没有任何意义。我上次尝试解决这个问题(我自己)导致我不小心破坏了我的桌面操作系统。

我在笔记本电脑上运行 Linux Mint 17.1,在台式机上运行最新版本的 Manjaro。我从来没有遇到过这样的事情。

如果我可以提供任何其他信息,请在下面评论,我会尽快回复。

提前致谢!

相关内容