Setting up an SSH server on Ubuntu is about as simple as it gets. The server of choice is OpenSSH.
在Ubuntu上设置SSH服务器非常简单。 选择的服务器是OpenSSH。
Run this command from a terminal window:
从终端窗口运行以下命令:
sudo apt-get install ssh
须藤apt-get install ssh
To test that it’s working, you can try to ssh into your own machine:
要测试它是否正常工作,可以尝试使用ssh进入自己的计算机:
> ssh localhost
> SSH本地主机
The authenticity of host ‘localhost (127.0.0.1)’ can’t be established.RSA key fingerprint is 98:8a:b8:b2:9e:8a:84:e0:d4:08:27:fb:74:f0:de:d4.Are you sure you want to continue connecting (yes/no)?
无法建立主机'localhost(127.0.0.1)'的真实性.RSA密钥指纹为98:8a:b8:b2:9e:8a:84:e0:d4:08:27:fb:74:f0: de:d4。确定要继续连接(是/否)吗?
Looks like it’s working! Naturally our ssh client doesn’t have the key for the server, since we just installed it. You can type yes to continue or just hit Ctrl-C to stop.
看起来正在工作! 自然,我们的ssh客户端没有服务器的密钥,因为我们只是安装了它。 您可以输入yes继续,也可以按Ctrl-C停止。
翻译自: https://www.howtogeek.com/howto/ubuntu/setup-openssh-server-on-ubuntu-linux/