1. You must know that openSSH is not installed in Ubuntu by default. Therefore, the first step is to install openSSH. The command is as follows: sudoapt-getinstallopenssh-serverUbuntu has openssh-client installed by default, so you don't need to install it here. After the installation is complete, run the following command to check whether the sshserver is started: ps-e | grepssh. If only the ssh-agent is displayed
1. You must know that openSSH is not installed in Ubuntu by default. Therefore, the first step is to install openSSH. The command is as follows:
Sudo apt-get install openssh-server
Openssh-client is installed in Ubuntu by default, so you do not need to install it here.
After the installation is complete, run the following command to check whether the sshserver is started:
Ps-e | grep ssh
If you only see the ssh-agent, it indicates that the ssh-server has not been started. You need the following command to start the ssh-server:
/Etc/init. d/ssh start
If you see sshd, it indicates that the ssh-server has been successfully started.
The ssh-server configuration file is located in/etc/ssh/sshd_config. Here, you can define the SSH service port. The default port is 22. You can define other port numbers, such as 222.
After modifying the configuration file, you must restart the SSH service. The command is as follows:
Sudo/etc/init. d/ssh restart
Or:
Sudo service ssh restart
2. Use SecureCRT to create the public key and private key. The command path is as follows:
Quick Connect-> Authentiation-> Public Key-> Properties-> Create Identity File-> DSA/RSA-> Set Passphrase-> Done
The specific commands are as follows:
A. Start Quick Connect dialog box