我只是上传一个SSH密钥到我的服务器,现在我不能再login了… SSH在端口3333上运行。
puTTy: pageant failed to answer challenge
terminal给我这个时候试试: ssh -vvv "[email protected] -p 3333"
OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to xxx.xxx.xxx.xxx -p 3333 [xxx.xxx.xxx.xxx] port 22. debug1: connect to address xxx.xxx.xxx.xxx port 22: Connection refused ssh: connect to host xxx.xxx.xxx.xxx -p 3333 port 22: Connection refused
我遵循这个教程 。
我怎样才能再次login?
把引号关掉。 你应该跑步
ssh [email protected] -p 3333
引号是ssh-copy-id
所必需的,因为ssh-copy-id
只是一个脚本,它自己调用了ssh参数(它变成了[email protected] -p 3333
不带引号),但是直接运行ssh时,不需要引号。