Just installed Linux installation, open ssh remote (Access denied pit has been solved)

By default, the Linux system prohibits remote logins such as ssh! ! ! Need to open root remote login permission

1. Install the ifconfig command

yum install net-tools

Two, install vim

sudo apt-get install vim-gtk

3. Install ssh

sudo yum install sshd

Five, open ssh

sudo service sshd start

6. Change configuration file permissions

chmod 777 /etc/ssh/sshd_config

7. Enter and edit files

vim /etc/ssh/sshd_config

    In the first case, change the method:

 

The second case: delete # in front of PermitRootLogin and change no to yes.

 

8. Restore permissions

chmod 400 /etc/ssh/sshd_config

Nine, restart ssh

sudo service sshd start

Guess you like

Origin blog.csdn.net/m0_60217700/article/details/131411478