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。我從來沒有遇過這樣的事情。

如果我可以提供任何其他信息,請在下面評論,我會盡快回复。

先致謝!

相關內容