ssh登录过程中 出现 unsupport gssapiauthentication及pscp传输文件出现 ssh_init: Network error: Cannot assign requested address错误

现象1:

通过rsync使用ssh协议 上传本地文件到远程时出现错误(ssh client使用的是putty),如下:

rsync -e ‘ssh’ -av /root/ywh  root@192.168.44.248:/root

 上面已经提示/etc/ssh/ssh_config配置(即本机ssh client配置),不支持gssapiauthentication

#GSSAPIAuthenticationno //是否允许使用基于GSSAPI 的用户认证.默认值为"no".仅用于SSH-2
#GSSAPICleanupCredentialsyes //是否在用户退出登录后自动销毁用户凭证缓存。

解决方法:使用更新版本的putty

现象2:

pscp传输文件出现 ssh_init: Network error: Cannot assign requested address错误

解决方法:加上-P 参数即可

原文地址:https://www.cnblogs.com/weihua2020/p/13727131.html