Hi Dave,

Please find ssh -v results,


OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: loaded 3 keys
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'x.x.x.x' can't be established.
RSA key fingerprint is 40:1e:59:ae:9f:7c:86:4b:05:d3:0b:ba:fc:ed:e6:4f.
Are you sure you want to continue connecting (yes/no)? 


Thanks&Regards,
Ramesh


--- On Sat, 17/7/10, dave kahlbaum <[email protected]> wrote:

From: dave kahlbaum <[email protected]>
Subject: Re: chroot issue
To: "ramesh srinivas" <[email protected]>
Date: Saturday, 17 July, 2010, 7:57 AM

Hi Ramesh,
Can you run the following on your remote server & paste
the results?

ssh -v [hostname]


Here's an example of what to expect:

# ssh -v servername
OpenSSH_4.3p2, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /usr/local/etc/ssh_config
debug1: Connecting to server [x.x.x.] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/3
debug1: identity file /.ssh/identity type -1
debug1: identity file /.ssh/id_rsa type 1
debug1: identity file /.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
The authenticity of host 'server (x.x.x.x)' can't be established.
RSA key fingerprint is x.x.x.x.x.x.xx.x.x.
Are you sure you want to continue connecting (yes/no)? Yes
Host key verification failed.
You have mail in /usr/mail/root

Rgds, dave.

---------------

---- ramesh srinivas <[email protected]> wrote: 
> 
> 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