1824363 Members
3298 Online
109669 Solutions
New Discussion

Chroot & Sftp

 
SOLVED
Go to solution
panchpan
Regular Advisor

Chroot & Sftp

Hello.
1) Can below command be used IF I run shell script in background for connecting non-ssh server from a ssh server:
sftp -oIdentityFile= -b <.ftp filename> login@ServerIP

I suppose, No because target server is non-ssh and so it will not have any public/private keys in it. What could be other easy solution? Only /opt/ssh/bin/ftp is allowed on source server to use for connectivity.

2) I have three databases in 3 directories and have 3 logins on one ssh-server. Is it good to have these accounts chroot type so that one does not cd to other. Or any other option to do so?

Many thanks!
1 REPLY 1
Kevin Wright
Honored Contributor
Solution

Re: Chroot & Sftp

1)install sshd on the destination server.

2)setting up group ownership and permissions correctly might be enough to meet your needs.