Articles of 公钥

Webmin + SSH公钥

有没有可能将UNIX用户的公钥上传到Webmin? 我会认为这将在这个屏幕上,但我没有find它….

没有发现SSH密钥从Windowslogin到CentOS 5.5(Cygwin)

使用公共密钥身份validationlogin到运行CentOS 5.5的VPS时遇到困难。 我可以使用密码authenticationlogin到标准用户帐户和root帐户。 我使用的是Windows和Cygwin,所有的Cygwin和Windows的东西几个月来一直工作得很好; 我相信这个问题是服务器端。 我用ssh-keygen创build了一个id_rsa私钥和一个id_rsa.pub公钥。 我已经复制到服务器上的用户目录,并完成cat id_rsa.pub >> authorized_keys 。 我的/home/myuser/.ssh目录设置为700,authorized_keys文件设置为600。 login我的系统时报告以下(-vvv): Next authentication method: publickey Offering RSA public key /.ssh/id_rsa send_pubkey_test we sent a publickey packet, wait for reply Authentications that can continue: publickey,password 然后问我一个密码。 从我的服务器的/ var / log / auth文件我有以下相关的公钥进程 sshd[28249]: input_userauth_request: try method publickey sshd[28249]: test whether pkalg/pkblob are acceptable sshd[28249]: […]

签署公钥

我不确定在哪里这是正确的地方问这个问题 有人要求我签署公钥,我该怎么做? 他的公钥有版本:GnuPG v1.2.1(GNU / Linux)

为什么我的SSH公钥authentication只适用于并发密码authentication的连接

我只是用openssh-server设置了一个vanilla ubuntu lucid(10.04)系统。 我试图设置公钥authentication,只有当我第一次连接使用密码authentication,并保持打开该会话才有效。 所有新的并发会话将使用publickey。 我已经采取了所有步骤,以确保正确的权限在我的服务器端主目录。 chmod go-w ~/ chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys 我的客户端RSA 2048位公钥被附加(仅一行)到authorized_keys文件中。 我的RSA密钥也有空白密码。 我很困惑什么可能会导致这一点。 我知道它必须是我的服务器configuration的东西。 我听说如果configuration不够“安全”,它不会允许公钥authentication,但我很困惑,可能是什么。 # Authentication: LoginGraceTime 120 PermitRootLogin no StrictModes yes RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys # Don't read the user's ~/.rhosts and ~/.shosts files IgnoreRhosts yes # For this to work you will also need […]

SSH主机密钥已更改 – 除了它实际上没有

我刚刚尝试SSH服务器,我已经这样做没有问题一段时间,并收到警告,服务器的主机密钥已更改。 但它没有! 在服务器上,我检查了/etc/ssh/sshd_config引用的主机密钥,但没有更改。 在客户端,我检查了known_hosts文件,并且在那里的现有条目有正确的公钥。 我试着将known_hosts文件临时StrictHostKeyChecking , no在/etc/ssh/ssh_config中将StrictHostKeyChecking设置为no ,这样就可以自动连接,以便比较公钥。 当我这样做,并检查known_hosts的新条目,公钥部分是相同的以前! 那为什么不连接? known_hosts唯一不同的是主机名的salt和hash。 但是由于我总是通过IP和端口连接,而不使用主机名,所以这些必须是正确的。 有任何想法吗? 请注意,所有尝试连接的客户端都会收到此消息。 所以这不是客户的问题。 编辑:我应该补充说,当我连接StrictHostKeyChecking设置为no ,并创build了一个新的known_hosts文件,当我然后尝试再次使用新的known_hosts文件连接和StrictHostKeyChecking回到yes ,它没有警告连接。 换句话说,新的known_hosts文件没有警告地工作,而旧的文件没有,尽pipe里面有相同的公钥。

SSHconfiguration,公共密钥,权限被拒绝(公钥,密码)。 错误

我的任务:从Mac OS Snow Leopard客户端login到Ubuntu 10.10服务器,无需密码。 命令: client$ mkdir ~/.ssh client$ chmod 700 ~/.ssh client$ ssh-keygen -q -f ~/.ssh/id_rsa -t rsa Enter passphrase (empty for no passphrase): [empty] client$ chmod go-w ~/ client$ chmod 700 ~/.ssh client$ chmod go-rwx ~/.ssh/* client$ scp ~/.ssh/id_rsa.pub [email protected]:~ server$ mkdir ~/.ssh server$ chmod 700 ~/.ssh server$ cat ~/id_rsa.pub >> ~/.ssh/authorized_keys […]

rsync到EC2使用ssh -i

我能够ssh -i mykey.pem到EC2。 我能scp -i mykey.pem到EC2。 但是,当我尝试rsync -avz -e "ssh -i mykey.pem"我得到这个错误: Warning: Identity file mykey.pem not accessible: No such file or directory. Permission denied (publickey). rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9] 任何build议我做错了?

sshd忽略authorized_keys并继续尝试authorized_keys2

我只是将我的公钥上传到服务器,确保权限是正确的,当我尝试login它只是拒绝它。 启用sshd_config中的loglevel DEBUG后,我得到: Nov 22 06:53:36 host-1 sshd[8612]: debug1: Forked child 8617. Nov 22 06:53:36 host-1 sshd[8617]: Set /proc/self/oom_score_adj to 0 Nov 22 06:53:36 host-1 sshd[8617]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8 Nov 22 06:53:36 host-1 sshd[8617]: debug1: inetd sockets after dupping: 3, 3 Nov 22 06:53:36 host-1 […]

如何为另一个客户端的密钥validationconfigurationSSH访问?

我知道,如果我想configurationSSH访问密钥authentication,我需要使用以下命令: ssh-keygen -b 2048 -t rsa -C “mypassphrase” 然后,我需要将我的计算机上的id_rsa.pub创build的代码id_rsa.pub到服务器的〜/ .ssh / authorized_keys文件中。 我也需要设置一些文件夹和文件的权限。 这使我的计算机的密钥身份validation。 现在,我还想知道如何在另一台计算机上启用这种访问。 是否必须将创build的代码添加到id_rsa.pub到相同的~/.ssh/authorized_keys文件中? 谢谢你的帮助。

加快公钥authentication(linux)?

我们正在使用一个Mercurial实现,并通过公共密钥authentication发送数据到一个存储库服务器,该authentication采用最新版本,并通过使用公共密钥authentication(因此两个使用公钥authentication的连接)的钩子将其推送到我们的Web服务器。 它可以工作,但即使是很小的提交也需要5-10秒。 我相信这是由于公钥authentication,因为我知道当通过terminal使用公钥authentication连接时,需要一两秒钟才能login并显示标题。 有没有办法让这个(login)更快? 在一个侧面说明是否有任何方法来保持ssh的标语不会去标准输出,除了把它closures? 它popup返回状态,很烦人。