Friday, November 23, 2012

Linux SFTP openSSH server


cat /etc/ssh/sshd_config
cat: /etc/ssh/sshd_config: Permission denied



which sftp
/usr/bin/sftp


ps -ef | grep sshd
root      4891  6172  0 02:10 ?        00:00:00 sshd: soa [priv]
soa       4893  4891  0 02:10 ?        00:00:00 sshd: soa@pts/0
root      6172     1  0 Jun26 ?        00:00:00 /usr/sbin/sshd
soa       7158  4894  0 02:13 pts/0    00:00:00 grep sshd


ls -ltr /usr/libexec/openssh/sftp-server
-rwxr-xr-x 1 root root 53312 Jan 4 2012 /usr/libexec/openssh/sftp-server
ps -ef | grep sftp
soa      29622 26654  0 02:41 pts/0    00:00:00 grep sftp


man sshd and man sshd_config



No comments: