Enable SSH Password Login for SUSE Linux

Enable SSH Password Login for SUSE Linux

[Date: 2017-10-11] Source: Linux Community Author: neverinit [Font: large, medium and small ]

Generally speaking, the newly installed SUSE Linux system can use ssh2 to log in by default, but cannot use ssh password to log in. (At present, the suse11 and suse12 systems I have come into contact with do not support ssh password authentication and login just after installation)

(1) Log in to the system
① If you are using tools that support the SSH2 protocol such as SecureCRT and Xshell, you can use the SSH2 protocol to log in to the system first.
② If telnet is enabled, you can also use telnet to log in.
③ If you have system administrator rights, you can operate directly through management tools such as KVM.

(2) Open SSH password login, the operation is as follows:


1. Turn off the firewall (generally do not use the firewall policy of the Linux system itself)

# /etc/init.d/SuSEfirewall2_init stop

# /etc/init.d/SuSEfirewall2_setup stop
Permanently shut down the firewall if necessary
# chkconfig SuSEfirewall2_init off
# chkconfig SuSEfirewall2_setup off

2. Modify the /etc/ssh/sshd_config file

PasswordAuthentication no
is modified to
PasswordAuthentication yes

Then restart the sshd service:
execute the
# service sshd restart 
or
# /etc/init.d/sshd restart   
command.

You may also like the following articles about SSH , you may wish to refer to the following:

SSH password-free login settings in cluster environmenthttp  ://www.linuxidc.com/Linux/2017-03/141296.htm

Linux Basic Tutorial: Configuring SSH Password-Free Loginhttp: //www.linuxidc.com/Linux/2017-07/145847.htm

Remote SSH connection service and basic troubleshootinghttp  ://www.linuxidc.com/Linux/2017-05/143738.htm

Automatically log in to Linux server using SSH public key http://www.linuxidc.com/Linux/2017-02/140642.htm

Configure SSH password-free loginhttp  ://www.linuxidc.com/Linux/2017-08/146213.htm

Enable SSH service to allow Android phone to remotely access Ubuntu 14.04  http://www.linuxidc.com/Linux/2014-09/106809.htm

SSH non-interactive password authorization to remotely execute scripts  http://www.linuxidc.com/Linux/2017-04/143180.htm

SSH login via key http://www.linuxidc.com/Linux/2017-06/144997.htm

Implement SSH password-free login to remote server on  Linuxhttp://www.linuxidc.com/Linux/2017-05/144165.htm

For more information about SUSE, see the SUSE topic page http://www.linuxidc.com/topicnews.aspx?tid=3

This article permanently updates the link address : http://www.linuxidc.com/Linux/2017-10/147437.htm

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326086676&siteId=291194637