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...相关推荐

  1. shell 中scp 和 ssh密码输入 --expect (转:http://blog.sina.com.cn/s/blog_8ad7d4ca01014lft.html)

    这里必须先安装: yum install expect -y expect是一种自动交互语言,能实现在shell脚本中为scp和ssh等自动输入密码自动登录. 下面给出scp和ssh的使用示例: 1. ...

  2. 使用scp、ssh等不用输入密码

    使用scp.ssh等不用输入密码 echo scp -r root@132.12.22.35:/www/applog /backlog > exp2.sh echo scp -r /home/o ...

  3. Cisco Equipment Configuration SSH login

    Cisco's products currently only support SSH-1, does not support SSH-2, IOS support SSH features Vers ...

  4. linux下 scp 和 ssh 命令

    scp.ssh.sshpass命令 scp 命令 Linux scp 命令用于Linux之间复制文件和目录. scp 是secure copy 的缩写,scp 是linux系统下基于ssh登录进行安全 ...

  5. 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以后 ...

  6. linux下 SCP 、ssh、ssh-copy-id采用非默认端口传输

    linux系统下,scp 使用非默认端口进行传输需要添加参数-P(大写),ssh需要添加参数-p(小写),ssh-copy-id需要添加参数-p(小写). 实例: 在scp命令中.需要大写.如下: [ ...

  7. Passwordless SSH Login

    原文地址:http://manjeetdahiya.com/2011/03/03/passwordless-ssh-login/ Consider two machines A and B. We w ...

  8. 服务器免密码传输文件,CentOS7,使用 scp 命令, ssh 连接方式,免密码传输文件到远程服务器,免密执行远程服务器上的 shell 脚本...

    如题 如果提示:-bash: scp: command not found, 执行下面的命令安装:1 yum install -y openssh-clients 免密码配置通常用 scp 命令通过 ...

  9. linux ssh和scp,Linux SSH 与 SCP命令简述

    SSH SSH为建立在应用层和传输层基础上的安全协议 sshd服务使用SSH协议进行远程控制,或在计算机之间传送文件.而实现此功能的telnet(远程桌面) 是不安全的,使用明文传送密码 ssh ss ...

最新文章

  1. PHP Web 2.0开发实战
  2. linux 程序自启
  3. 一些可以让心灵安静的动图
  4. linux 线程 pthread create 源码 剖析
  5. Oracle服务自动启动脚本
  6. 华为鸿蒙加快完善,替换安卓!华为鸿蒙OS生态持续扩大:或适配高通平台
  7. jboss7.0.2_JBoss AS 7.0.2“ Arc”发布–使用绑定选项
  8. P91--商品保存debug完成
  9. DecimalFormat的几种用法!关于字符串的使用
  10. 华为开源构建工具_5个开源工具可快速构建地图应用
  11. 樊登读书分享ppt_樊登读书精华分享-《分手后,成为更好的自己》
  12. Python之石头剪刀布
  13. 应用Tableau、Vertica的可视化大数据分析框架
  14. 数据集 —— ground truth 数据集
  15. html如何加入浮动客服,css如何实现客服悬浮效果
  16. php怎么输出指定数据类型,PHP变量的输出和数据类型
  17. 【1stopt】1stOpt的编程模式
  18. vue 实现点击选中div后, 右下角显示对号√
  19. 看精神小伙是如何智斗骗子的
  20. 【Python】新华字典(bushi

热门文章

  1. Java各层之间的关系
  2. js设置radio 和checkbox 单选
  3. 在SQL中用正则表达式替换html标签
  4. 蜘蛛侠论坛 2.0 源代码发布
  5. Marquee无间隙滚动(二)
  6. Linux 命令(82)—— chgrp 命令
  7. C++ struct 与 union
  8. [Swift]LeetCode890. 查找和替换模式 | Find and Replace Pattern
  9. Python sysos模块
  10. Unity3d 通过协程来实现文件的全部加载后执行