[ale] automating an ssh script?

David Bronson dbron at roman.net
Mon Aug 5 22:47:38 EDT 2002


If it is set up correctly, the password won't be requested - even on
the first attempt.

David

On Mon, Aug 05, 2002 at 01:17:20PM -0400, Dow Hurst wrote:
> I think you will always have to give the passphrase on the first 
> connection.  Subsequent connections will not require it as long as your 
> ssh-agent is running.  An empty passphrase doesn't require the initial 
> passphrase.  This is what I thought happened.  Am I wrong?  I could be...
> Dow
> 
> PS.  By the way, I'm back from vacation and paying attention to email 
> and phone calls again.
> 
> 
> ChangingLINKS.com wrote:
> 
> >Okay, it looks like I made _some_ major progress, but I still cannot do 
> >anything without giving a passphrase.
> >Thanks to Michael Hirsh (and others) for giving me some directions that I 
> >could use to get some results. Here are the commands that I ran. Can 
> >someone edit these so that I know what I did wrong?
> >
> >rm -rf ~/.ssh   //to start .ssh from scratch
> >ssh-keygen -t rsa1  //to generate type1 public and private keys
> >cp ~/.ssh/identity ~/.ssh/authorized_keys  //to create a file for the 
> >remote machine
> >cp ~/.ssh/identity.pub ~/.ssh/authorized_keys2  //ditto
> >ftp ~/.ssh/authorized_keys AND  ~/.ssh/authorized_keys2 to remote 
> >machine's ~/.ssh //upload files
> >ssh user at shell1.host.com //test .ssh to see if it works
> >exit  //thinking I should exit to run next command locally
> >eval `ssh-agent`
> >ssh-add ~/.ssh/identity
> >ssh user at shell1.host.com //testing to see if I connect passphraseLESS
> >eval `ssh-agent` //failed to connect without passphrase, decided to run 
> >eval on remote machine
> >
> >FAILED TO CONNECT WITHOUT USING A PASSPHRASE.
> >
> >I do not own the remote box. How can I "Ensure that RSA authentication is 
> >enabled for both the server ("RSAAuthentication yes" in sshd_config on the 
> >server"? Tried downloading the file from my server - permission denied. 
> >Ftp client crashed second time.
> > 
> >
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems should 
> be sent to listmaster at ale dot org.
> 

-- 
David Bronson                          	|	My friends say I'm perlverted.
Network Administrator/Consultant	|	I know its because I C things
NCS Network Consulting			|	differently.

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list