Xshell6 connection ubuntu tutorial (notes)

Foreword:

This is not much different from the previous centos connection tutorial. (Interested friends can see the notes I sent before), but there are a few details that need to be paid attention to.

Ubuntu connection method:

vi /etc/ssh/sshd_config //


在图片显示的高亮处,即是需要添加的权限
PermitRootLogin yes 

You must log in and modify with administrator privileges here , otherwise an error will occur

Set the password of the administrator account:

passwd root //
输入新的密码:
在此输入新的密码:
//这里都是不显示密码的哦!

Restart the ssh service:

systemctl restart sshd 

establish connection:

Enter the administrator password:

Successfully established connection:

 

Series of questions:

Can't connect normally?

Reboot

See if the network is normal

View permissions and ports

If you can't connect, Guoguo can't think of other ways.Let's take a look at other big guys' notes, hehehe!

Guess you like

Origin blog.csdn.net/qq_43575090/article/details/108850446