Re: ssh / scp / batch mode
- From: Dances With Crows <danSPANceswithTRAPcrows@xxxxxxxxx>
- Date: Fri, 23 Mar 2007 12:21:43 -0500
noi staggered into the Black Sun and said:
On Fri, 23 Mar 2007 07:53:55 -0700, rh00 wrote this:
I am confused in ssh. I want to login without password (batch mode)
userA@client connecting to userB@server
- creating the key-pair in client with
ssh-keygen -t rsa1 (NO passphrase)
RSA? I thought most places used DSA, but ICBW.
cat identity.pub (userA@client) >> authorized_keys (userB@server)
authorized_keys, not authorized_keys2?
ssh-keygen -t dsa (NO passphrase)I think you only need one key RSA or DSA. cat to authorized_keys, not
cat id_dsa.pub (userA@client) >> authorized_keys2 (userB@server)
I would appreciate any comments and/or reference about which host,
[parameters, configurations, whatever] [defines] the [standards] used
by [clients and servers] (RSA1, RSA, DSA)
authorized_keys2? authorized_keys should show both sets of keys.
clairissa:~/.ssh$ ls
authorized_keys2 id_dsa id_dsa.pub known_hosts
....no authorized_keys file at all. IIRC, authorized_keys was used by
ssh protocol version 1. You can see a lot of what's going on by using
the -v switch to ssh. Here, ssh checks for RSA keys (not there), DSA
keys (there), and offers the DSA public key to the server. Server
accepts, because the id_dsa.pub has been appended to the
authorized_keys2 file on the server.
The behavior of sshd is mostly governed by its config file,
/etc/ssh/sshd_config , which has a man page. Also note that ssh is
very strict about permissions; it'll complain unless ~/.ssh is chmodded
700 and the files within ~/.ssh are chmodded 600. (Gotta keep your
private key private, after all!) HTH,
--
If you're looking for trouble, I can offer you a wide selection.
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.
- Follow-Ups:
- Re: ssh / scp / batch mode
- From: J. Sommers
- Re: ssh / scp / batch mode
- References:
- ssh / scp / batch mode
- From: rh00
- Re: ssh / scp / batch mode
- From: noi
- ssh / scp / batch mode
- Prev by Date: Re: ssh / scp / batch mode
- Next by Date: Re: ssh / scp / batch mode
- Previous by thread: Re: ssh / scp / batch mode
- Next by thread: Re: ssh / scp / batch mode
- Index(es):
Relevant Pages
|
|