![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
I was going to suggest what Scrutinizer suggested, but he beat me too it.
![]() Quote:
With it, I am prompted for my passphrase the first time I login after a reboot of my local machine. It keeps a process running, even if I logout, that maintains the passphrase in memory. Then when I use ssh or scp (even via cron when logged out) the keychain process supplies the passphrase. It's as safe as your local login. |
|
|||
|
Either loops work, the problem is ssh-ing to the servers itself. I can ssh serverB on the command line without being prompted for a password. However when i use the script to do it, i'm being prompted for a password and i don't know the password to access these servers. Do you think i should add the known host on remote server ? I'm not using keychain -- I don't even know the passpharase of the existing keys. What should i do?
|
|
|||
|
Quote:
The way to get SSH to work without a password is to append your public key from the local machine to the ~/.ssh/authorized_keys file on the remote machine. When the known_hosts file give me trouble, I delete it and it starts over. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| update a common file in different/remote servers | techychap | Shell Programming and Scripting | 1 | 11-09-2008 08:36 PM |
| Copy a file on remote server | sunsysadm2003 | Shell Programming and Scripting | 1 | 06-30-2008 01:48 PM |
| restore mysql dump file in many remote servers? | blesets | Shell Programming and Scripting | 2 | 09-13-2006 02:17 AM |
| help me to copy remote file | manmohan73 | HP-UX | 8 | 12-20-2005 01:29 AM |
| Remote file copy | lchunl | UNIX for Dummies Questions & Answers | 3 | 07-27-2001 12:35 PM |