![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | 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. |
|
|
||||
| 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 04:53 AM |
| [Perl] Silent Input | eightysix | Shell Programming and Scripting | 2 | 11-20-2007 06:39 PM |
| How to run shell script in silent mode | x057373 | UNIX for Dummies Questions & Answers | 3 | 12-04-2005 05:26 PM |
| silent telnet | cgardiner | UNIX for Dummies Questions & Answers | 1 | 09-16-2001 07:31 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
Exactly, just cat into the authorized_keys file.
|
|||
| Google The UNIX and Linux Forums |