问题原文
原帖链接 · svr · CC BY-SA 3.0
Every user has a dedicated machine, but is not exposed to the outside world. The 'gateway' is the only system that is exposed.
The user has no idea of this setup. He just does
ssh username@gateway which should be equivalent to ssh [email omitted].
Can we configure a gateway sshd with which we can achieve this? Each machine has a single user. So, there can't be any confusion in determining the upstream server.
已采纳解答
原帖链接 · Jakuje · CC BY-SA 3.0
Setting up
Match group proxyUsers
ForceCommand /bin/connect_to_user_machine
and having /bin/connect_to_user_machine
#!/bin/bash
ssh $USER@$USER.internal $SSH_ORIGINAL_COMMAND
will do the job
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
