SecureCRT A public key file has not been specified by this session...
2017-07-17 19:42
495 查看
之前连接linux服务器时, 都是输入用户名和密码进行登录的. 后因安全问题, 改用了Agent keys的方式进行登录. 管理员提供了一个 *.pub的文件, 说是导入之后不用输入密码即可进行连接.
SecureCRT的Tools -> Manage Agent Keys -> 点击右侧的Add... -> 选择提供的 *.pub文件, 再次登录即可.
但问题来了, 每次关闭了SecureCRT, 再次连接这个服务器时, 又要求导入, 具体信息如下:
先是弹出: All available GSSAPI mechanisms failed.
确定之后, 报出了: A public key file has not been specified for this session. Would you like to specify one now?
选择是之后, 就又要求导入key了...
后在网上搜索, 网上给的解决方案是: 修改/etc/ssh/sshd_config, 将PasswordAuthentication项改为yes,重启sshd服务(service sshd restart)即可
但是因为安全原因, 是不可能改为yes的, 后来经过大神指点, 修改了secureCRT的配置, 解决了每次都需要选择key的问题:
解决方案:
右击连击 -> Properties -> 在左侧的Category中, 依次选择Connection / SSH2 , 在右侧的Authentication中, 取消勾选 Password, Keyboard Interactive, GSSAPI -> OK即可
SecureCRT的Tools -> Manage Agent Keys -> 点击右侧的Add... -> 选择提供的 *.pub文件, 再次登录即可.
但问题来了, 每次关闭了SecureCRT, 再次连接这个服务器时, 又要求导入, 具体信息如下:
先是弹出: All available GSSAPI mechanisms failed.
确定之后, 报出了: A public key file has not been specified for this session. Would you like to specify one now?
选择是之后, 就又要求导入key了...
后在网上搜索, 网上给的解决方案是: 修改/etc/ssh/sshd_config, 将PasswordAuthentication项改为yes,重启sshd服务(service sshd restart)即可
但是因为安全原因, 是不可能改为yes的, 后来经过大神指点, 修改了secureCRT的配置, 解决了每次都需要选择key的问题:
解决方案:
右击连击 -> Properties -> 在左侧的Category中, 依次选择Connection / SSH2 , 在右侧的Authentication中, 取消勾选 Password, Keyboard Interactive, GSSAPI -> OK即可
相关文章推荐
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SSH error:a public key file has not been specified by this session
- SecureCRT ssh连接虚拟机后显示 A public key file has not been specified for this session,Would you like to...
- Code::Blocks之It seems that this file has not been built yet.
- It seems that this file has not been built yet.Do you want to build it now? Codeblocks能构建build不能运run
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- It seems that this file has not been built yet.Do you want to build it now? Codeblocks能构建build不能运ru
- <环境>win10运行markdownpad2 报弹框: this file has been modified by another progream , ... HTML Rendering Er
- SecureCRT experienced a fatal error and must close.A crash dump file has been created i
- 解决 Code::Blocks之It seems that this file has not been built yet.
- System.NotSupportedException: This method explicitly uses CAS policy, which has been obsoleted by th
- It seems that this file has not been built yet .C代码无法编译
- SharePoint Designer Can not perform this operation.The file is no longer checked out or has been del
- It seems that this file has not been built yet.Do you want to build it now? Codeblocks能构建build不能运run
- Recover a file even if it was not committed but it has to have been added when you use git reset head by mistake.
- flex error:HttpFlexSession has not been registered as a listener in web.xml
- The original file 'AndroidManifest.xml' has been deleted or is not accessible