How To Fix: SCP And SSH Login Prompt Is Very Sl...
2019独角兽企业重金招聘Python工程师标准>>>
For my case, the GSSAPI authentication feature was causing the delayed SSH login prompt!
You can confirm the causes of your case by using the -v option switch. For example, the following is the verbose response of SSH login process started with -v option:
dev01 [/home/devstl]$ ssh -v appssupp@10.50.100.111
......
......
......
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: gssapi-with-mic
debug1: An invalid name was supplied
Cannot determine realm for numeric host addressdebug1: An invalid name was supplied
Cannot determine realm for numeric host addressdebug1: An invalid name was supplied
Cannot determine realm for numeric host addressdebug1: Next authentication method: publickey
debug1: Trying private key: /home/devstl/.ssh/identity
debug1: Trying private key: /home/devstl/.ssh/id_rsa
debug1: Trying private key: /home/devstl/.ssh/id_dsa
debug1: Next authentication method: password
appssupp@10.50.100.111's password:
How to fix SCP and SSH delayed login prompt?
The answer for my case is apparently by disabling GSSAPI authentication, which can be done in one of these three ways:
The “fix” is tested with SSH clients installed by openssh-clients-3.9p1-8.RHEL4.15 RPM file.
1) Specify the option to disable GSSAPI authentication when using SSH or SCP command, e.g.:
ssh -o GSSAPIAuthentication=no appssupp@10.50.100.111
2) Explicitly disable GSSAPI authentication in SSH client program configuration file, i.e. edit the /etc/ssh/ssh_config and add in this configuration (if it’s not already in the config file):
GSSAPIAuthentication no
3) Create a file called config in .ssh directory of respective user home directory (or whichever user home directory that need to get rid of this show login prompt). For example, edit /home/devstl/.ssh/config (create the config file if it’s not currently exist) and add in the GSSAPIAuthentication no
option.
1) /etc/ssh/ssh_config is a global SSH client configuration file that affects all system users who are using SSH client programs.
2) /home/devstl/.ssh/config is local SSH client configuration file that only affects the user account called devstl. Whatever SSH client options specified in this local file overwrite the options stated in global SSH client configuration file.
After disabling GSSAPI authentication, SSH login prompt is back to “normal” now:
dev01 [/home/devstl]$ ssh -v appssupp@10.50.100.111
......
......
......
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/devstl/.ssh/identity
debug1: Trying private key: /home/devstl/.ssh/id_rsa
debug1: Trying private key: /home/devstl/.ssh/id_dsa
debug1: Next authentication method: password
appssupp@10.50.100.111's password:
As you can see, the SSH login is not currently authenticated via public key cryptography method, which I’ve to fix it later :-(
转载于:https://my.oschina.net/zhangdapeng89/blog/62392
How To Fix: SCP And SSH Login Prompt Is Very Sl...相关推荐
- shell 中scp 和 ssh密码输入 --expect (转:http://blog.sina.com.cn/s/blog_8ad7d4ca01014lft.html)
这里必须先安装: yum install expect -y expect是一种自动交互语言,能实现在shell脚本中为scp和ssh等自动输入密码自动登录. 下面给出scp和ssh的使用示例: 1. ...
- 使用scp、ssh等不用输入密码
使用scp.ssh等不用输入密码 echo scp -r root@132.12.22.35:/www/applog /backlog > exp2.sh echo scp -r /home/o ...
- Cisco Equipment Configuration SSH login
Cisco's products currently only support SSH-1, does not support SSH-2, IOS support SSH features Vers ...
- linux下 scp 和 ssh 命令
scp.ssh.sshpass命令 scp 命令 Linux scp 命令用于Linux之间复制文件和目录. scp 是secure copy 的缩写,scp 是linux系统下基于ssh登录进行安全 ...
- scp或者ssh报错“no matching host key type found. Their offer: ssh-rsa,ssh-dss“
scp或者ssh报错"no matching host key type found. Their offer: ssh-rsa,ssh-dss" 原因:OpenSSH 7.0以后 ...
- linux下 SCP 、ssh、ssh-copy-id采用非默认端口传输
linux系统下,scp 使用非默认端口进行传输需要添加参数-P(大写),ssh需要添加参数-p(小写),ssh-copy-id需要添加参数-p(小写). 实例: 在scp命令中.需要大写.如下: [ ...
- Passwordless SSH Login
原文地址:http://manjeetdahiya.com/2011/03/03/passwordless-ssh-login/ Consider two machines A and B. We w ...
- 服务器免密码传输文件,CentOS7,使用 scp 命令, ssh 连接方式,免密码传输文件到远程服务器,免密执行远程服务器上的 shell 脚本...
如题 如果提示:-bash: scp: command not found, 执行下面的命令安装:1 yum install -y openssh-clients 免密码配置通常用 scp 命令通过 ...
- linux ssh和scp,Linux SSH 与 SCP命令简述
SSH SSH为建立在应用层和传输层基础上的安全协议 sshd服务使用SSH协议进行远程控制,或在计算机之间传送文件.而实现此功能的telnet(远程桌面) 是不安全的,使用明文传送密码 ssh ss ...
最新文章
- PHP Web 2.0开发实战
- linux 程序自启
- 一些可以让心灵安静的动图
- linux 线程 pthread create 源码 剖析
- Oracle服务自动启动脚本
- 华为鸿蒙加快完善,替换安卓!华为鸿蒙OS生态持续扩大:或适配高通平台
- jboss7.0.2_JBoss AS 7.0.2“ Arc”发布–使用绑定选项
- P91--商品保存debug完成
- DecimalFormat的几种用法!关于字符串的使用
- 华为开源构建工具_5个开源工具可快速构建地图应用
- 樊登读书分享ppt_樊登读书精华分享-《分手后,成为更好的自己》
- Python之石头剪刀布
- 应用Tableau、Vertica的可视化大数据分析框架
- 数据集 —— ground truth 数据集
- html如何加入浮动客服,css如何实现客服悬浮效果
- php怎么输出指定数据类型,PHP变量的输出和数据类型
- 【1stopt】1stOpt的编程模式
- vue 实现点击选中div后, 右下角显示对号√
- 看精神小伙是如何智斗骗子的
- 【Python】新华字典(bushi