共享 SSH 密钥 [英] Sharing SSH keys

查看:33
本文介绍了共享 SSH 密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在托管多个网站的服务器上为多个用户帐户使用私有 SSH 密钥和无密码条目.

I use a private SSH key and passwordless entry for a number of user accounts on a server that hosts a number of websites.

我为每个用户帐户使用相同的私钥.(因为我很懒?或者这是正确"的方式).

I use the same private key for each user account. (because I'm lazy? or is that the "right" way).

我现在想在该国不同地区授权另一台受信任的计算机.如果我将 ~/.ssh 的内容复制到那台机器上,无需任何其他设置就可以工作吗?

I now want to authorise another trusted computer in a different part of the country. If I copy the contents of my ~/.ssh onto that machine will that work without any other set up?

两台机器能同时保持连接吗?

Will both machines be able to maintain a connection at the same time?

推荐答案

这应该可行,并且两台机器应该能够同时保持连接 - 我不得不复制我的 ~/.ssh 目录之前几次硬盘驱动器崩溃.

This should work, and both machines should be able to maintain a connection at the same time - I've had to copy my ~/.ssh directory a few times before when hard drives have crashed.

这篇关于共享 SSH 密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆