大网数据广告活动
服务器运维问答

Alternatives to Kerberos for passwordless server access

· 52CE 我爱测

I have a bunch of Linux servers and three Windows servers 2008 R2. I would need a solution which would enable passwordless SSH login from each of those servers to all others. I could do this by generating keys on all machines and…

问题原文

原帖链接 · Reb · CC BY-SA 3.0

I have a bunch of Linux servers and three Windows servers 2008 R2. I would need a solution which would enable passwordless SSH login from each of those servers to all others. I could do this by generating keys on all machines and distribute them to all other servers, but this solution have low scalability. Whenever I add a server, I have to distribute it's key to all servers. Therefore I'd need a solution to centraly administer key and access to ALL servers.

Is KERBEROS a way to go for me? Does anyone know of any silimlar or better solution on Linux? Thanks.

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 3.0

Kerberos is the best option, but you probably don't want to set it up by hand. It has a lot of moving parts and is easy to get something wrong.

Instead, you should set up a domain and join all of the computers to the domain.

You have three options for setting up a domain for this environment:

  • FreeIPA. This is well supported in Linux, especially Red Hat-derived distributions, though it's also available in other distributions. This is your best choice if all or almost all of the computers run Linux; and the few Windows computers can be made to join the domain with a little work.
  • Active Directory. The venerable Windows-based domain controller, which is your best choice if most of the computers run Windows.
  • Both FreeIPA and Active Directory. If you have a mixed environment, you may wish to run FreeIPA to manage your Linux systems and Active Directory to manage your Windows systems, with appropriate cross-domain trusts between them.
  • Samba 4 pretending to be Active Directory. You will often see this in mixed environments, or in places where someone didn't approve the budget for a Windows license to set up AD. It should be evaluated carefully as it may not support all features of modern AD functional levels.

In all cases Kerberos will be used underneath; but you don't usually have to worry about the details, as they are handled for you.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-02-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。