[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: urgent : ssh without password prompt and password client auth

> Well everything is in the title.
> I would like to use ssh in scripts so without entering
> the password.

  local_ ssh-keygen -t pick_one

When it asks for your _passphrase_, hit ENTER.  Now (assuming
"remote:~you/.ssh/" exists):

  - local_ scp ~/.ssh/id_pick_one.pub remote:~you/.ssh/

  - remote_ chmod 700 ~/.ssh

  - remote_ cat ~you/.ssh/id_pick_one.pub >> ~you/.ssh/authorized_keys

  - remote_ chmod 600 ~/.ssh/authorized_keys

Now, anyone who gets into either box can compromise all of your
accounts on local and remote with ease.  Have fun.

Any technology distinguishable from magic is insufficiently advanced.
(*)    http://www.spots.ab.ca/~keeling      Please don't Cc: me.
- -

Reply to: