赞
踩
报错描述:JAVA 远程连接centosh或suse报错:密码认证失败 java.io.IOException: Password authentication failed
错误原因:linux服务器中的ssh服务被禁用。
解决:OpenSUSE系统开启ssh服务。
打开命令控制台/xshell/CRT等,类似windows下的cmd窗口,操作如下:
1、修改sshd_config文件,命令为:vi /etc/ssh/sshd_config
2、将#PasswordAuthentication no的注释去掉,并且将NO修改为YES
3、将#PermitRootLogin yes的注释去掉
4、重新启动SSH服务
/etc/init.d/sshd restart
5、验证SSH服务状态
/etc/init.d/sshd status
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。