Solved

sftp to solaris from windows

Posted on 2007-04-09
6
1,037 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:prgeorge3383
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 18879877
What type of ssh/sftp client are you suing? In most case, you don't need to worry about to setup the keys if you are use loginname and password, your ssh/sftp client can take care of it when you login to your server.

Please read "SSH Key Management":
http://ist.uwaterloo.ca/~kscully/SSH_Keys.html

and "A Beginner's Guide to SSH or Secure Shell":
http://geodsoft.com/howto/ssh/

please pay attention to ssh clients setup
0
 

Author Comment

by:prgeorge3383
ID: 18882768
thanks
0
 

Author Comment

by:prgeorge3383
ID: 18883977
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
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 500 total points
ID: 18886886
0
 

Author Comment

by:prgeorge3383
ID: 18891027
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-mic,publicke
y,password,keyboard-interactive
debug3: start over, passed a different list gssapi-keyex,gssapi-with-mic,publick
ey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
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-mic,publicke
y,password,keyboard-interactive
0
 

Author Comment

by:prgeorge3383
ID: 18893837
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

0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question