1833847 Members
2361 Online
110063 Solutions
New Discussion

Re: ssh

 
Rahul.J.A
Occasional Contributor

ssh

After follwing the steps given by

Noel Miranda
Mar 30, 2005 06:55:23 GMT unassigned
sftp from sysa to sysb using user1
--------------------------------------------
a. Login to sysa as user1.

b. ssh-keygen -t rsa

c. Two files are generated.
1. id_rsa
2. id_rsa.pub

d. Transfer the file id_rsa.pub to sysb:/tmp

e. cat /tmp/id_rsa.pub >> /.ssh/authorized_keys
Create the .ssh directory and touch the file authorized_keys on sysb if necessary. Change permissions as on sysa.

g. Test connection by doing an sftp from sysa to sysb. The first time you may be prompted to retain the signature of the remote system. Just comfirm with an yes. It should take you to the sftp prompt.

f. If you need to communicate the other way i.e. sysb to sysa, then you need to do the same as above after swapping systems.

I get the following error

bash-3.00$ sftp rahul@avalon
Connecting to avalon...
rahul@avalon's password:
Request for subsystem 'sftp' failed on channel 0
Connection closed
bash-3.00$

I have gone chmod 700 on the sysb machine
5 REPLIES 5
Juan M Leon
Trusted Contributor

Re: ssh

You are creating trusted keys. If I am not mistaken you will have to to put the *pub file under the user homedirectory/.ssh2
or the user will not be trusted.
The error you are receiving, I am not sure what it means.

hope it helps
Pat Lieberg
Valued Contributor

Re: ssh

Does a regular ssh to the system work?

Perhaps the sshd daemon is not running?
Pat Lieberg
Valued Contributor

Re: ssh

You should also verify that the sftp subsystem is defined in your sshd_config file.

There should be a line like this:

Subsystem sftp /opt/ssh/libexec/sftp-server
Simon Hargrave
Honored Contributor

Re: ssh

Check what errors you may have on sysb (the destination), this can give you clues.

Make sure that PubkeyAuthentication is set to yes in /opt/ssh/etc/sshd_config

Make sure the permissions on both the .ssh AND user home directory are correct. sshd is fussy about the parent directory to .ssh as well as .ssh directory.

Try the same with ssh instead of sftp, see if you get any more meaningful errors. Check again syslog for these messages. They're usually pretty clear.
Rahul.J.A
Occasional Contributor

Re: ssh

There was a mismach of HP-UX Secure Shell


I could solve the issue by installing

https://h20293.www2.hp.com/portal/swdepot/try.do?productNumber=T1471AA

by doing this i could do a sftp . Thanks for the help