First, the experimental requirements
1. Open the remote service in the installed Ubuntu 16.04 LTS 64-bit system
2. Use SECURECRT for remote
Second, step
1. OpenSSH is not installed when the system is installed
Update System Tools and dependencies: sudo apt-get update execute installation command sudo apt-get install openssh-server openssh-client
2. Start SSH
First check whether SSH is running, execute the sudo ps -e |grep ssh
command, if there is no display, the SSH service is not running. Instead, an sshd word appears, indicating that the SSH service is running.
If SSH is not running, use the sudo service ssh start
command to start.
#启动/etc/init.d/ssh start# Stop/etc/init.d/ssh stop# restart/etc/init.d/ssh restart# use service command # to start sudo service ssh start# Stop sudo service ssh stop# restart sudo service ssh restart
3. Modify the configuration file
Note: The configuration file here is sudo/etc/ssh/sshd_config
To open a profile with a name: sudo vi/etc/ssh/sshd_config the permitrootlogin without-password line in the configuration file; Add a new line: Permitrootlogin yes; Save the configuration file and restart the SSH service.
4. Remote connection test
Configure the native IP and port number in the SECURECRT to remotely
Ref: 1190000004686476
Ubuntu Open Remote SSH service