Linux suse 新机连不上xshell,或其他连接工具,原因是没有关闭防火墙,没有开启sshd服务。
一、关闭防火墙
linux-1jo3:~ # systemctl stop SuSEfirewall2.service
linux-1jo3:~ # systemctl stop SuSEfirewall2_init.service
linux-1jo3:~ # systemctl disable SuSEfirewall2.service
Removed symlink /etc/systemd/system/multi-user.target.wants/SuSEfirewall2.service.
Removed symlink /etc/systemd/system/multi-user.target.wants/SuSEfirewall2_init.service.
Removed symlink /etc/systemd/system/SuSEfirewall2_setup.service.
linux-1jo3:~ # systemctl disable SuSEfirewall2_init.service
二、开启sshd服务
linux-1jo3:~ # systemctl start sshd
三、测试连接
输入用户名和密码就可以了。