![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stopping password prompt | rochitsharma | UNIX for Advanced & Expert Users | 4 | 07-04-2006 01:14 PM |
| password not prompt when doing a remote log in | legato | UNIX for Dummies Questions & Answers | 1 | 04-19-2005 07:20 AM |
| any way to use SU command without prompt for password | myelvis | Shell Programming and Scripting | 7 | 11-17-2003 08:27 PM |
| Unable to get password prompt | owls | IP Networking | 2 | 11-12-2003 02:17 AM |
| rcp without password prompt | scottl | UNIX for Dummies Questions & Answers | 1 | 09-15-2003 07:47 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SSH: Avoiding password prompt with rsa key generation
Hi,
I am using a remote storage service for backing up our data - we want to have a script run as part of a cron job which would do the backups from our local Linux machine to the service's Linux machine. I want to use tar and ssh to do this (rather than mounting the disk and using cp) . Therefore want to learn how to avoid having to type in a password with ssh. I am new to this feature so I went online and read the procedure, downloaded and built OpenSSH and did the following: $ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/homes/12/same/.ssh/id_rsa): /homes/12/same/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /homes/12/same/.ssh/id_rsa. Your public key has been saved in /homes/12/same/.ssh/id_rsa.pub. The key fingerprint is: 27:a4:d4:63:35:62: ... same@dpdw $ ssh-copy-id -i ~/.ssh/id_dsa.pub test3@remote.machine test3@remote.machine''s password: Now try logging into the machine, with "ssh 'test3@remote.machine'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. So at this point I'm expecting to be able to ssh into the remote machine and not be prompted for a password. Is this what should happen? As can be below seen I'm still prompted. $ ssh 'test3@remote.machine' test3@remote.machine's password: Can someone please suggest a possible problem with what I'm doing that's preventing this from working? Thanks in advance, Sam |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|