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地址,登录信息即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM