different ssh settings for different users

Steven W. Orr steveo at syslang.net
Wed May 31 15:16:31 UTC 2006


On Wednesday, May 31st 2006 at 11:54 +0530, quoth Ankush Grover:

=>I am using openssh-3.9 on FC3.Is it possible to have different ssh
=>settings for each user means if there is a user john and he can only
=>connect through the port 3309 and if  there is a user mary she can
=>only connect through the port 4067 ?
=>
=>Rest of the users should be able to connect through the default port
=>that is 5009.

You may use multiple lines in your sshd config file

ListenAddress 3309
ListenAddress 4067
ListenAddress 5009

Why in the Wide World of Sports would you want to do such a thing?

=>Moreover is it possible to restrict some users to login only from few
=>machines for example I want to restrict user tom that he can only
=>login from one machine ?

To restrict a user to an address, use tcpwrappers.


-- 
steveo at syslang dot net TMMP1 http://frambors.syslang.net/
Do you have neighbors who are not frambors?




More information about the fedora-list mailing list