Quote:
Originally Posted by farooq.pathan
Hey,
I tried changing the sftpserver port but its not working, besides how can i restrict users from particular ips.
Eg: users a can ssh from 192.168.*.*
user b can sftp from 200.*.*.*
how we can do this?
|
errm...couple of things.
you can only change the sftp port if you change the ssh port. you can do that in sshd_config
you can use iptables to limit from ip address
you can use /etc/security/access.conf to limit from ip address
you can use tcpwrappers since sshd has libwrap compiled in
Code:
ldd `which sshd` | grep wrap
libwrap.so.0 => /usr/lib/libwrap.so.0 (0x00159000)
forgot to add - once you have changed the sshd port, restart ssh and use
Code:
sftp -oPort=portnumber
for future sftp actions