prgeorge3383
asked on
sftp to solaris from windows
Hi,
I have got a ssh-rsa key from my unix admin for a soloaris host.
I need to connect to this host using sftp. I have downloaded sftp from open ssl website.
what do i do with the key file i got.
I have got a ssh-rsa key from my unix admin for a soloaris host.
I need to connect to this host using sftp. I have downloaded sftp from open ssl website.
what do i do with the key file i got.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
went thu most of the documents. Still have one more question
If i have to enamble public key private key method of authentication what changes do I need to do in an openssh server and client
If i have to enamble public key private key method of authentication what changes do I need to do in an openssh server and client
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
All.... here is my log.....
Steps
1. ssh-keygen -t rsa ,2 keys formed
2. copy .pub file to unix server
3.cp *.pub authorized_keys
chmod 600 authorized_keys
cp id_rsa.pub authorized_keys2
chmod 600 authorized_keys2
sftp -v -v -v user4567@serverloc3
debug1: Found key in /home/user4567/.ssh/known_ hosts:1
debug2: bits set: 530/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/user4567/.ssh/id_rsa (0x0)
debug2: key: /home/user4567/.ssh/id_dsa (0x0)
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-m ic,publick e
y,password,keyboard-intera ctive
debug3: start over, passed a different list gssapi-keyex,gssapi-with-m ic,publick
ey,password,keyboard-inter active
debug3: preferred publickey,keyboard-interac tive,passw ord
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,passw ord
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user4567/.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug3: sign_and_send_pubkey
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-m ic,publick e
y,password,keyboard-intera ctive
Steps
1. ssh-keygen -t rsa ,2 keys formed
2. copy .pub file to unix server
3.cp *.pub authorized_keys
chmod 600 authorized_keys
cp id_rsa.pub authorized_keys2
chmod 600 authorized_keys2
sftp -v -v -v user4567@serverloc3
debug1: Found key in /home/user4567/.ssh/known_
debug2: bits set: 530/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/user4567/.ssh/id_rsa
debug2: key: /home/user4567/.ssh/id_dsa
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-m
y,password,keyboard-intera
debug3: start over, passed a different list gssapi-keyex,gssapi-with-m
ey,password,keyboard-inter
debug3: preferred publickey,keyboard-interac
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,passw
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/user4567/.ssh/id_rsa
debug1: read PEM private key done: type RSA
debug3: sign_and_send_pubkey
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-m
y,password,keyboard-intera
ASKER
the user’s home directory, .ssh directory, and authorized_keys file must not be group- or world-writable.
run sshd in debug mode
cat /var/log/secure will show the errors
these are the permissions needed
775 for all the directries
600 for authorized_keys
this worked
run sshd in debug mode
cat /var/log/secure will show the errors
these are the permissions needed
775 for all the directries
600 for authorized_keys
this worked
ASKER