1. 程式人生 > >ssh 遠程登錄TX2

ssh 遠程登錄TX2

信息 拖動 sshd_conf gre sta profile 登錄 files img

TX2 端SSH操作

安裝:

sudo apt-get install openssh-server

確認sshserver是否啟動:

ps -e |grep ssh

如果看到sshd那說明ssh-server已經啟動了。
如果沒有則可以這樣啟動:

sudo /etc/init.d/ssh start

ssh-server配置文件位於/ etc/ssh/sshd_config,在這裏可以定義SSH的服務端口,默認端口是22,你可以自己定義成其他端口號,如222:
如果配置該文件需要重啟SSH服務:

sudo /etc/init.d/ssh restart

ssh 遠程登錄TX2

SSHSecureShellClient-3.2.9 下載

下載後安裝,桌面上出現:

SSHSecureShellClient-3.2.9
SSH Secure File Transfer Client

首先需要設置TX2的ip,和Windows 端的IP:
TX2的IP設置成:192.168.1.10
Windows端設置:
技術分享圖片
禁用掉win10防火墻,先ping一下TX2,如果通了,打開 SSHSecureShellClient-3.2.9,點擊Quick Connect,填入相應的信息:
技術分享圖片
點擊連接後出現:
技術分享圖片
在TX2端重新配置一下ssh:

sudo gedit /etc/ssh/sshd_config

在末尾添加:

Ciphers aes128-cbc,aes192-cbc,aes256-cbc,aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc,arcfour128,arcfour256,arcfour,blowfish-cbc,cast128-cbc

MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,hmac-sha1-96,hmac-md5-96

KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group1-sha1,[email protected]

然後重啟SSH服務:

sudo /etc/init.d/ssh restart

再次在window下連接,輸入密碼:
技術分享圖片

成功登錄:
技術分享圖片

ssh TX2 文件傳輸

打開SSH Secure File Transfer Client 軟件,輸入登錄IP、賬戶、密碼:
技術分享圖片
之後便可以相互拖動文件:
技術分享圖片

可以點擊Profiles,添加當前賬戶的信息,下次登錄時候選擇指定的Profile輸入密碼即可:
技術分享圖片

ssh 遠程登錄TX2