解决backtrack5无法ssh登录问题
- Published in BackTrack Linux
-
Notice: Undefined property: Joomla\CMS\User\User::$profile in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category_item.php on line 49
Notice: Trying to get property 'gender' of non-object in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/category_item.php on line 49
Written by alamise
backtrack5安装完毕后,使用putty远程登录时显示network error:Connection refused
解决方法:
登录系统(系统默认用户名密码是root/toor,startx可以进入图形界面)
在命令终端输入命令,
#sshd-generate (系统可能会询问是否覆盖,全部选Y)。
或者
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
密码置空
#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
密码置空
然后
:~# /etc/init.d/ssh restart
问题解决。