SecureCRT无法正常连接Ubuntu 14.0.4的解决办法

在SercureCRT中使用root帐号连接Ubuntu14.0.4的时候,提示“Password Authentication Failed,Please verify that the username and password are correct.”重新输入密码,反复检查多次密码并重新输入正确的密码,还是提示同样的错误。

SecureCRT无法正常连接Ubuntu 14.0.4的解决办法

解决:

(1)安装SSH

  打开Ubuntu的终端,输入:

  sudo apt-get install openssh-server

(2)关闭掉防火墙

   sudo ufw disable

netstat -nat | grep 22

(3)sudo /etc/init.d/ssh start

在虚拟机终端使用root帐号登录,编辑/etc/ssh/sshd_config文件

	vi /etc/ssh/sshd_config
	将PermitRootLogin without-password修改为PermitRootLogin yes,然后保存

(4)重启ssh服务,既可以通过SercureCRT正常连接服务器

说明:sshd_config是ssh的配置文件,其中有一个选项 PermitRootLogin 用来配置是否允许root用户登录,默认的without-password表示不允许使用密码进行全登录认证,yes则是允许root登录. 来自 http://www.linuxidc.com/Linux/2015-03/114579.htm


或者不用上述步骤,直接 ssh localhost