嘿,每当我尝试通过端口22连接ssh时,我就会得到这个错误,
ssh:连接到主机本地主机端口22:连接被拒绝
linux计算机的静态IP为192.168.2.128/129。
我重新安装了ssh device并且仍然得到了这个错误,我已经能够访问我的设备,但是没有特权
如果有人能帮助或指导我成功地连接两个linux终端,任何帮助都将不胜感激。Thx
当我使用我的笔记本电脑ssh -v pwnie@localhost 192.168.2.128时,我得到一个权限令牌错误。
OpenSSH_7.4p1 Debian-6, OpenSSL 1.0.2h 3 May 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to localhost [::1] port 22.
debug1: connect to address ::1 port 22: Connection refused
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: connect to address 127.0.0.1 port 22: Connection refused
ssh: connect to host localhost port 22: Connection refused发布于 2017-03-03 11:48:00
ssh -v pwnie@localhost 192.168.2.128
如果您在笔记本上运行此命令,将尝试连接到您的笔记本电脑。localhost一直是你自己查找的机器,所以在你的笔记本电脑上,localhost是你的笔记本电脑。
如果要以用户pwnie的身份连接到192.168.2.128,请运行ssh pwnie@192.168.2.128。
在互联网上运行任何类型的服务器之前,先了解基本知识。
https://serverfault.com/questions/836082
复制相似问题