sobota 11. júla 2020

rssh and sftp

Problem with rssh.conf

When the user has problem with sftp access, maybe it's problem in /etc/rssh.conf 



1) check the user in /etc/passwd

c6h6:x:1234:1234::/mnt:/usr/bin/rssh

- check his shell (it's not bash but rssh) 

- rssh use limit in user account (user has no access to ssh but he has access via sftp or scp)






2) check /etc/rssh.conf 

allowsftp must be comment out

- in this issue allowsftp commented and I had to comment out this 

before = not working
[root@zeleznica_katka ~]# cat /etc/rssh.conf | grep -i  allowsftp
#allowsftp


after comment out --it's work 

[root@zeleznica_katka ~]# cat /etc/rssh.conf | grep -i -n allowsftp
10:allowsftp


3) restart sshd 

systemctl restart sshd 


Žiadne komentáre:

Zverejnenie komentára