在嵌入式開發中,SSH Secure File Transfer Client 軟件使用,方便了windows和linux之間文件拷貝,尤其是多台主機狀況下。
最近裝了Ubuntu 16.0.4,在VM10,win10下,配置測試出現問題,在此記錄。
1、Linux 安裝 SSH
sudo apt-get install SSH
2、安裝 SSH Secure,安裝好后如下
3、Linux下,使用ifconfig獲得本機IP,然后打開SSH Secure File Transfer Client
4、點擊“connect”報錯:“Algorithm negotiation failed”
5、在Linux下,打開 /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,umac-64@openssh.com,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,curve25519-sha256@libssh.org
6、保存,並且重啟SSH
service sshd restart
7、再次點擊"connect",反復提示輸入password對話框
打開 /etc/ssh/sshd_config,按照如下更改
8、再次點擊“connect”,可以正常傳輸文件了。