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