oraytektips
Programmer
I created a new sftp accont with the new chroot facility in ssh.But when I login it doesn't take me the right directory.
tail /etc/ssh/sshd_config
Subsystem sftp internal-sftp
Match User sftptest
ChrootDirectory /temp
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp
when I login using sftptest
sftptest@server's password:
sftp> pwd
Remote working directory: /
sftp> cd ftp
sftp> pwd
Remote working directory: /ftp
how can I directly go to /temp/ftp when I login without
doing cd ftp?
Thanks!
tail /etc/ssh/sshd_config
Subsystem sftp internal-sftp
Match User sftptest
ChrootDirectory /temp
AllowTcpForwarding no
X11Forwarding no
ForceCommand internal-sftp
when I login using sftptest
sftptest@server's password:
sftp> pwd
Remote working directory: /
sftp> cd ftp
sftp> pwd
Remote working directory: /ftp
how can I directly go to /temp/ftp when I login without
doing cd ftp?
Thanks!