Configuring which servers a user can ssh to from a jump server.

Linux Sri Lanka

New Member
Joined
Nov 8, 2022
Messages
2
Reaction score
0
Credits
25
Currently, which servers a user can ssh from a jump server are mentioned in the sshd_config file as follows.
Screenshot_20230212_155902.jpg

ex:

Match User bob
PasswordAuthentication no
AuthenticationMethods publickey
permitopen 172.20.12.8:22 1.1.1.1:1


Even if it works correctly as above, due to the fact that a large number of characters are recorded in the sshd_config file, this is a .ssh/config file in the user's home directory. but when ssh from the jump server to another server it gives an error like bad configuration error: permitopen What is the reason for this?


Please suggest other ways to fix it or use it instead
 

Staff online

Members online


Top