Unable to use ssh connection under Ubuntu

1. Start the ssh service

sudo /etc/init.d/ssh start

2. Modify the SSH configuration file

configuration file directory

/etc/ssh/sshd_config

By default, root remote login is not allowed, and it can be enabled in the configuration file.

sudo vi /etc/ssh/sshd_config

Find PermitRootLogin without-password and modify it to PermitRootLogin yes (I have encountered it before)

3. Restart the SSH service

service ssh restart

Summary: When debugging the rkdemo board, I found that I could not use ssh to connect to the core board, which greatly affected the debugging efficiency. After searching on the Internet, I found that it was a configuration problem. The original text is quoted as follows: Solve the problem that SSH cannot connect under ubuntu

Guess you like

Origin blog.csdn.net/yy1677/article/details/131123977