1832235 Members
2584 Online
110041 Solutions
New Discussion

sftp problem

 
SOLVED
Go to solution
chuanpeng.wang
Frequent Advisor

sftp problem


Two question about sftp:
1 How to do that only the IP which configured in server can access the sftp?

2 How to make the user can only access the special directory?

Thanks.
5 REPLIES 5
Peter Godron
Honored Contributor

Re: sftp problem

chuanpeng.wang
Frequent Advisor

Re: sftp problem

Hi peter

I can't open the page.
chuanpeng.wang
Frequent Advisor

Re: sftp problem


I have opened it, but it can't resolve all my question.

How about the directory?
And whether the sftp is the same with ssh?
Peter Godron
Honored Contributor
Solution

Re: sftp problem

Hi,
do you mean the login directory (which is set in /etc/passwd)? Or do you want to lock the user to a directory (chroot) ?
Please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=942006

If you install ssh you also get sftp,sftp uses the ssh port as well.
chuanpeng.wang
Frequent Advisor

Re: sftp problem


OK, fixed.

in ssh_config
HostbasedAuthentication no

DenyHosts "16.157.46.168"

It worked.
But after I try several times, it doesn't work.

I don't know why?