The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



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

More UNIX and Linux Forum Topics 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 03:24 PM
Wine in silent mode myle Linux 1 03-10-2008 07:53 AM
[Perl] Silent Input eightysix Shell Programming and Scripting 2 11-20-2007 09:39 PM
How to run shell script in silent mode x057373 UNIX for Dummies Questions & Answers 3 12-04-2005 08:26 PM
silent telnet cgardiner UNIX for Dummies Questions & Answers 1 09-16-2001 11:31 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-07-2005
sgaucho sgaucho is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 7
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
  #2 (permalink)  
Old 11-08-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #3 (permalink)  
Old 11-08-2005
sgaucho sgaucho is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 7
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
  #4 (permalink)  
Old 11-08-2005
dangral dangral is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2002
Posts: 699
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?
  #5 (permalink)  
Old 11-09-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #6 (permalink)  
Old 11-09-2005
sgaucho sgaucho is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 7
ssh config

hi guys, thanks for the info. I have another doubt now !

Whats with this authorized_keys file ?? is it a file or a directory under .ssh ??

I dumped the public key generated by my client into the .ssh dir of the remote server.

Please clarify something, authorized_keys is generated by whom and how do I insert the Public key into this file ? do a simple cat id_rsa.pub > authorized_keys ??

thnx a lot,
sg
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

BB 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 -4. The time now is 06:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0