The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to do a silent installation on linux eamani_sun Linux 2 05-09-2008 11:24 AM
Wine in silent mode myle Linux 1 03-10-2008 03:53 AM
[Perl] Silent Input eightysix Shell Programming and Scripting 2 11-20-2007 05:39 PM
How to run shell script in silent mode x057373 UNIX for Dummies Questions & Answers 3 12-04-2005 04:26 PM
silent telnet cgardiner UNIX for Dummies Questions & Answers 1 09-16-2001 07:31 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-2005
Registered User
 

Join Date: Nov 2005
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
SFTP silent login

Hi,

I am connecting via SFTP to a remote Server. My problem is on trying to LOGin, I am asked for a password. I need to make this process automatic such that I can login without being prompted for a password.

I can achieve this if the remote server has a simple FTP server and not SFTP. How can I achieve this for SFTP ???

I have heard about some solution using KERBEROS but it appears way too complicated and even our System and Network Admins dont have any idea on how to use it..

Appreciate any suggestions,

TIA,
sg
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-08-2005
blowtorch's Avatar
Supporter
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,309
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
You can use key-based authentication to login without using a password. You can do this very easily. Search for "ssh key based authentication" or something similar on google.
Reply With Quote
  #3 (permalink)  
Old 11-08-2005
Registered User
 

Join Date: Nov 2005
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
ssh config

Hi,

Thanks for the info. Our client unix machine has OpenSSH running on it. Using the tool ssh-keygen, I did generate a public and private key, inserted the Public key in the remote machine $home/.ssh dir but still I am being asked for a password.

I have a doubt here and appreciate any clarification:

I have been provided with an user and password to login via SFTP to the remote machine. How do I tie this user and password to the Public/ Private Keys generated in the client machine ????
If I dont tie them together, how does the remote machine permit access to it !!?

Thnx,
Sands
Reply With Quote
  #4 (permalink)  
Old 11-08-2005
Registered User
 

Join Date: Oct 2002
Posts: 670
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by sgaucho
Hi,

Thanks for the info. Our client unix machine has OpenSSH running on it. Using the tool ssh-keygen, I did generate a public and private key, inserted the Public key in the remote machine $home/.ssh dir but still I am being asked for a password.

I have a doubt here and appreciate any clarification:

I have been provided with an user and password to login via SFTP to the remote machine. How do I tie this user and password to the Public/ Private Keys generated in the client machine ????
If I dont tie them together, how does the remote machine permit access to it !!?

Thnx,
Sands
You don't need the username and password in that case. The server allows you to log in through another authentication mechanism(public key).

When you copied the public key to the destination server, did you put it in the file ~/.ssh/authorized_keys? Whats the permissions of the file? Of the .ssh directory?
Reply With Quote
  #5 (permalink)  
Old 11-08-2005
blowtorch's Avatar
Supporter
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,309
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
The permissions on your .ssh directory and the files below that should be like these:
# ls -ld .ssh
drwx------ 2 xxxx xxxx 96 xxxxx .ssh

# cd .ssh
# ls -l
total 64
-rw------- 1 xxxx xxxx 887 xxxxx id_rsa
-rw------- 1 xxxx xxxx 1024 xxxxx prng_seed

As you can see, only the owner should have read/write permissions on the directory and the files. In fact, ssh wont work if you are more permissive than this.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102