SSH Client 远程访问Raspberry Pi3

SSH Client工具(SSH Secure Shell Client)远程访问linux系统非常方便,且自带FTP功能。

但是在SSH Client访问Raspberry Pi的时候会遇到各种问题,社区中多用putty来远程。现在将遇到的各种问题解决如下

1. Raspberry Pi 的SSH功能的打开方法。

这点没什么难度,在“首选项”的Raspberry Pi Configuration里面进行设置即可。

2. 出现“algorithm negotiation failed”错误。

导致这个错误的原因是Raspberry Pi 的加密算法与SSH Client不一致。需要手动添加。

在终端中 

sudo vi /etc/ssh/sshd_config
注意是sshd_config不是ssh_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
保存退出vi

重启ssh:

sudo service ssh restart
之后就可以用 SSH Client登陆了。

3. FTP访问问题

Paspberry Pi 默认没有安装和开启ftp。

首先安装vsftpd:

sudo apt-get update
sudo apt-get install vsftpd
开启vsftpd服务

sudo service vsftpd start
这时候可以通过ftp客户端进行访问了,比如flash ftp等,但是SSH client的FTP还是无法访问。

需要安装openssh-server来解决这个问题

sudo apt-get install openssh-server
然后重启vsftpd服务

sudo service vsftpd restart
至此SSH client可以正常访问Raspberry Pi了








  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值