ubuntu ssh配置

Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network.[1] Typical applications include remote command-line login and remote command execution, but any network service can be secured with SSH.

为了搭建一个交叉编译的环境,windows环境下远程连接登录Ubuntu server,需要SSH访问。

首先,选一个合适的SSH工具。

推荐:MobaXterm,颜值,功能全面,开源免费;

image

然后,配置ubuntu server端:

安装ssh服务,sudo apt-get install ssh

/etc/ssh/sshd_config文件,

Port 22   #ssh服务的端口号

ListenAddress  192.168.1.1 #ssh服务的地址

PasswordAuthentication yes #打开密码认证

配置完毕后,重启启动ssh服务:

sudo /etc/init.d/ssh restart

启动后,可以用ps -ef | grep ssh检验是否存在ssh server相关的服务。

最后,配置windows client端:

创建ssh会话,填写端口,server地址,登录信息即可。

posted @ 2019-04-17 22:26  doctorJ  阅读(4250)  评论(0编辑  收藏  举报