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,顏值,功能全面,開源免費;
然后,配置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地址,登錄信息即可。