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.ubuntu

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

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

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

image

而后,配置ubuntu server端:工具

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

/etc/ssh/sshd_config文件,.net

Port 22   #ssh服务的端口号rest

ListenAddress  192.168.1.1 #ssh服务的地址server

PasswordAuthentication yes #打开密码认证blog

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

sudo /etc/init.d/ssh restart

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

最后,配置windows client端:

建立ssh会话,填写端口,server地址,登陆信息便可。

相关文章
相关标签/搜索