Articles of ssh keys

SCP转移不起作用,SSH会冻结

我正在尝试通过ssh使用SSH-RSA公钥来复制一些文件。 我已经接受了我的服务器的主机密钥,反之亦然,所以密钥是同步的。 现在我尝试通过SSH连接到主机,我成功了,但是如果我在某些文件夹中input“ls”,它会冻结。 另外我尝试做一个scp请求如下: scp -v username@host_ip:/folder/folder1/file.txt /home/user/Desktop 我得到这个答案: OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to <ip_host> [<ip_host>] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: Host '<ip_host>' is known and matches the RSA host key. debug1: ssh_rsa_verify: […]

安装ssh密钥

我一直试图启动无密码的SSH不成功。 我已经能够find的文件有点点。 至于生成公钥和私钥,我尝试了两种不同的方法:1.使用puttygen生成密钥; 2.使用服务器的ssh-keygen创build密钥。 这介绍了我的第一个问题。 在本地机器上生成密钥很重要吗? 我所看到的大多数文档都指出这一步是在本地机器上完成的,但没有说明为什么或者这是否是强制性的。 从这一点看,这个过程似乎是将公钥移动到服务器的.ssh文件夹,并使用cat命令来joinauthorized_keys和新的公钥。 据我所知,只要SSH程序configuration为使用密钥,那么你应该能够不使用密码login。 不幸的是,我还没有成功。 我的理解过程是否正确? 什么可能导致设置不起作用? 我对ssh的理解有限,所以感觉有点像鱼。 谢谢您的帮助! 系统设置 本地计算机 – Windows 7 主机 – * nix 更新 在进一步testing的基础上,这个问题最终成为腻子和openssh之间的兼容性问题。 我解决了这个问题,通过使用服务器(openssh)生成密钥,然后使用puttygen将密钥转换为腻子识别的格式。 从这里我可以利用选美将关键字提供给tortoiseSVN。 多谢你们!

已知的SSH服务器总是在第一个连接上询问我的密码,下面的连接使用密钥authentication

当我尝试连接到某个服务器(存在于~/.ssh/known_hosts )时,我复制了公钥,它总是询问我的密码。 如果我closures连接并再次尝试,则正确使用我的密钥。 如果我在一两个小时之后尝试再次连接,它将再次询问我的密码。 第一个连接: aurelien ~ > ssh -v fac OpenSSH_5.9p1, OpenSSL 1.0.0e 6 Sep 2011 debug1: Reading configuration data /home/aurelien/.ssh/config debug1: /home/aurelien/.ssh/config line 27: Applying options for fac debug1: Reading configuration data /etc/ssh/ssh_config debug1: Connecting to zzzzzzzz.univ-lyon1.fr [abcd] port 22. debug1: Connection established. debug1: identity file /home/aurelien/.ssh/id_rsa type 1 debug1: identity file /home/aurelien/.ssh/id_rsa-cert […]

公钥authentication – SSH重新启动本地计算机后询问密码短语?

我使用ssh-keygen在本地机器上创build了一个公钥/私钥对。 我input了一个密码。 然后,我使用ssh-id-copy将公钥放在远程机器上。 当我ssh进入远程机器时,在每次在本地机器上重新启动后,我都要求input密码。 这是预期的行为? 本地机器正在使用gentoo,而远程机器正在使用ubuntu。 我用的参考资料: https : //help.ubuntu.com/10.04/serverguide/C/openssh-server.html

由于“权限被拒绝(公钥)”,无法连接到我的EC2实例

在AWS控制台中,我看到我的密钥对已被删除。 我用相同的名字创build了一个新的。 然后我尝试连接ssh -v -i sohoKey.pem ec2-user@******.compute-1.amazonaws.com 这是输出: macs-MacBook-Air:~ mac$ ssh -v -i sohoKey.pem ec2-user@******.compute-1.amazonaws.com OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to ********.compute-1.amazonaws.com [*****] port 22. debug1: Connection established. debug1: identity file sohoKey.pem type -1 debug1: identity file sohoKey.pem-cert type -1 debug1: Remote […]

为远程主机创buildSSH密钥

我正在开始与远程主机合作。 他们需要从我的服务器“SSH密钥”。 我如何创build一个可用于允许我的服务器连接的SSH密钥? 如果可能,我想将密钥分配给服务器上的特定SSH用户。 我只是担心给予他们访问我的服务器。 他们不应该得到我的,但我应该有机会获得他们的。 我怎样才能生成一个密钥来实现呢? 我不知道是否有帮助,但我有Ubuntu 12.04

安全设置SSH密钥以使SCP / rsync无需密码即可运行

这是我目前的做法: # ssh-keygen -t dsa -b 1024 -f /root/localhost-rsnapshot-key Enter passphrase (empty for no passphrase): [press enter here] Enter same passphrase again: [press enter here] # if [ ! -d ~/.ssh ]; then mkdir ~/.ssh ; chmod 700 ~/.ssh ; fi # cd ~/.ssh/ # if [ ! -f config ]; then touch config ; […]

SSH不能仅通过VPN工作

编辑:SSH公钥设置是一个红色的鲱鱼。 我实际上无法通过Junos Pulse VPN连接SSH,甚至没有存储我的SSH密钥,无密码login。 我有一个SSH公钥设置在我常规SSH工作的UNIX机器上,这样我就可以快速login而不必input密码。 当我在办公室通过以太网连接时,它工作得很好。 但是,当我通过VPN进行连接时,无论从家中还是从工作中,无论是无线还是以太网,我都会遇到这个错误: mstills:~/ $ ssh -v <IP> [11:00:18] OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /etc/ssh_config debug1: /etc/ssh_config line 20: Applying options for * debug1: Connecting to ——- [——–] port 22. debug1: Connection established. debug1: identity file /Users/mstills/.ssh/id_rsa type 1 debug1: identity file /Users/mstills/.ssh/id_rsa-cert type -1 debug1: […]

为什么不能SSH入我的Ubuntu服务器? (ssh_exchange_identification错误)

我试图SSH到我的Ubuntu服务器(我已经做了很多次),我得到的错误: ssh_exchange_identification:由远程主机closures的连接 ssh -vvv显示如下: jimsmith:etc jimsmith$ ssh -vvv galleryserver OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/jimsmith/.ssh/config debug1: Applying options for galleryserver debug1: Reading configuration data /etc/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22. debug1: Connection established. debug3: Not a RSA1 key file /Users/richardelliot/.ssh/galleryserverkey.pem. debug2: key_type_from_name: unknown key […]

SSH密钥转发失败,只要我是根

情况 我使用ssh-add -K the_path作为用户@本地添加一个ssh-key到链中 我设置了https://help.github.com/articles/using-ssh-agent-forwarding中所述的密钥转发 AllowAgentForwarding已启用(本地) ForwardAgent在/ etc / ssh_config(remote)中不是“no” 回声“$ SSH_AUTH_SOCK”提供了一个tmp文件(本地) 当我ssh -vT [email protected]作为其他@服务器,然后login 当我运行ssh-add -L作为其他@服务器时,它添encryption钥。 问题 当我在root @ server上运行ssh-add -L ,它会显示“无法打开与身份validation代理的连接”。 当我运行ssh -vT [email protected]作为root @ server时,它不会login 我几乎不知道在哪里解决这个问题,或者是什么问题。 有人可以帮忙吗?