Re: Connect with null passphrases


Maybe this is too obvious and you have already thought of that, but why not use SSH Private/Public key method for connecting without password?

I'll throw out some steps for this (not verified):

1- on the machine that connects to other machines: "$> ssh-keygen -t dsa". Leave the passphrase for the keys empty.

2- two files will be created under "~user/.ssh/": id_dsa and on the local machine

3- copy the to the remote machines and, under the user that will run the job: "cd ~user/.ssh && cat >> authorized_keys"

Be sure to check that under the SSH server configuration for remote and local machines (sshd.conf), the option regarding the use of SSH keys is enabled.


John Stefani wrote:

Hello Everybody,

I have some cron jobs that use ssh (version 4.4p1) to connect to other servers and run certain tasks. The users in question sometimes are real users, sometimes fictitious users that I created only for running the cron job. I changed to *NP* the password field of /etc/shadow for the fictitious users on the servers the cron jobs connect to, and all works happily. Here's my problem: those servers to which the cron job tries to connect to as a real user, who has a real password, does not allow ssh connections with null passphrases. I can't set the password field in /etc/shadow to *NP* because sometimes I have to connect as the real user. Does someone know how I can connect automatically to a server, using ssh, as a user that has a password, but with a null passphrase? Hope the above was not too confusing...

Absolutely any thoughts or workarounds will be much appreciated.

John Stefani
jstefani _at_

Relevant Pages

  • OpenSSH 3.0.1p1 Solaris 2.5 - 8.0 Nightmares occuring
    ... I am having some really bad problems trying to upgrade our servers to ... having all kinds of issues with the keys. ... PS Am purchasing O'reilly's SSH book today, hopefully, it will ...
  • Re: SSH ignores locked accounts
    ... >> via SSH still works too. ... > the remote users to use SSH key access rather than password based access, ... This is very useful for master servers that hold authentication ... > of private keys and a designated set of authorized keys for your authorized, ...
  • graceful ssh key management
    ... How do I have multiple ssh keys not overwrite each other, ... I have a computer that is a client to a number of different servers. ...
  • Re: Opening ports in my firewall
    ... >> only with DSA keys, and not allowing manual password logins. ... - copy the .ssh directory to the new machine, if you control it, or ... Walter Dnes; my email address is *ALMOST* like ...
  • Re: ssh & X11 Authentication Issue - Advice Please
    ... >I went out and removed my .ssh directory on the mounted file system. ... >my keys are for my machine and anyone of the servers.. ...