Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: scp and ssh without passwd

by IraTarball (Monk)
on Dec 19, 2001 at 10:26 UTC ( #133029=note: print w/replies, xml ) Need Help??

in reply to scp and ssh without passwd

You might want to look into ssh-agent Once this is set up properly you only need to enter your passphrase once at the start of a session. After that all authentication happens without prompting.
Another solution for automated scripts that I have seen used, but don't especially like, is null passphrases. If the server is configured to accept them you can create a key without a passphrase. ssh will not prompt you, or anyone, with this type of key.

Good luck brother,

"So... What do all these little arrows mean?"

Replies are listed 'Best First'.
Re: Re: scp and ssh without passwd
by perlknight (Pilgrim) on Dec 19, 2001 at 19:09 UTC
    Yes I don't like using the a Null passphrase either, but I don't want to take the time to configure the ssh-agent(assumming I have to configure the client as well). What I did with the Null passphrase is on one server only. After that I copied over the public keys. I did it this way, because I want to centrally mananged all servers through this one. My problem is copying over the public keys, you see I am lazy guy. If I can find a way to do this by running a script, then I will. Otherwise I will have to use scp and provide the password to every remote hosts inorder to copy over the public key(this only done once per host). I found Expect works well with scp.

    Thanks Brother

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://133029]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2019-05-22 20:38 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (140 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!