Hello Martin,

I tried connecting using winscp and command line sftp.

Winscp
cannot initialize SFTP protocol. Is the host running sftp server?
Connection has been unexpectedly closed. Server sent command exit status 1.

Sftp
#sftp yuk...@localhost
Connecting to localhost...
yuk...@localhost's password:
Connection closed

SSH

#ssh yuk...@localhost
yuk...@localhost's password:
This account is restricted by rssh.
Allowed commands: scp sftp
If you believe this is in error, please contact your system administrator.
Connection to localhost closed.


I don't know what's wrong.

Thanks,
Ramesh


 

--- On Fri, 16/7/10, Yves Martin <[email protected]> wrote:

From: Yves Martin <[email protected]>
Subject: Re: chroot issue
To: [email protected]
Date: Friday, 16 July, 2010, 11:53 AM

 Hello,

How have you "tried to connect" ? By "ssh" command line, putty or any
other SSH client ?

In that case it sound like expected behaviour and sent syslog are OK.
I do not know what is the issue you want to fix...

Now, if you use "scp" command line or WinSCP client in scp or sftp mode,
then you should be able to transfer file as expected for your user setup
which has "scp" and "sftp" options allowed.

Hope this helps
Best regards


On mer, 2010-07-14 at 11:11 +0530, ramesh srinivas wrote:
> 
> 
> Hi,
> 
> I have configured rssh following instruction 
> http://www.cyberciti.biz/tips/rhel-centos-linux-install-configure-rssh-shell.html
> 
> OS: Centos 5.4
> 
> when i try to connect, prompts for password and connections closes. 
> 
> syslog  
> 
> Jul 11 12:20:19 pilot rssh[10366]: allowing scp to all users
> Jul 11 12:20:19 pilot rssh[10366]: allowing sftp to all users
> Jul 11 12:20:19 pilot rssh[10366]: setting umask to 022
> Jul 11 12:20:19 pilot rssh[10366]: chrooting all users to /sftp/chroot
> Jul 11 12:20:19 pilot rssh[10366]: line 51: configuring user yukthi
> Jul 11 12:20:19 pilot rssh[10366]: setting yukthi's umask to 011
> Jul 11 12:20:19 pilot rssh[10366]: allowing scp to user yukthi
> Jul 11 12:20:19 pilot rssh[10366]: allowing sftp to user yukthi
> Jul 11 12:20:19 pilot rssh[10366]: chrooting yukthi
> to /sftp/chroot/yukthi
> Jul 11 12:20:19 pilot rssh[10366]: chroot cmd
> line: /usr/libexec/rssh_chroot_helper 2
> "/usr/libexec/openssh/sftp-server"
> 
> I trying to fix the issue but i am not  able to figure out where i am
> going wrong, i request for suggestions..
> 
> Thanks,
> 
> Regards,
> Ramesh 
> 
> 

-- 
Yves Martin

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
rssh-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to