Ubuntu install ssh

1. Open the "Terminal Window", enter "sudo apt-get update" --> Enter --> "Enter the administrator password of the currently logged-in user" --> Enter, that's it.

2. Open the "Terminal Window", enter "sudo apt-get install openssh-server"-->Enter-->Enter "y"-->Enter-->Installation completed.

3. Open the "Terminal Window", enter "sudo ps -e |grep ssh"-->Enter -->There is sshd, indicating that the ssh service has been started, if not, enter "sudo service ssh start"-->Return Car --> ssh service will start.

4. Use gedit to modify the configuration file "/etc/ssh/sshd_config"

Open the "Terminal Window", enter "sudo gedit /etc/ssh/sshd_config" --> Enter --> Add a "#" sign to "PermitRootLogin without-password" in the configuration file, and comment it out --> Add another sentence "PermitRootLogin yes"-->Save, the modification is successful.

5. Check the IP address of Ubuntu 14.04

Open the "Terminal Window", enter "sudo ifconfig" --> Enter --> You can view the IP address.

 

Guess you like

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