Re: Returned post for

Hi all,

I'm writing a script which will log into a list of servers if they have public/private keypairs set up. If a server doesn't, I want the script to move on to the next server rather than wait at a password prompt.

I'm using OpenSSH version 5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007 on both client and server.

I'm using this command:

ssh root@IP -o PasswordAuthentication=no KbdInteractiveAuthentication=no

This works for most servers, but not all (on some of them the script halts at a password prompt). I suspect those servers may run an older version of SSH which doesn't support the options I'm providing. Any ideas? Thanks for any help.


Relevant Pages

  • Re: Learning Expect - Some help with a straightforward script + advice on cleaner ways to do thi
    ...  This is the first script of a few to go across multiple servers, but basically I have a very, very, very outdated hosts file that needs to be updated, as well as servers whose ... This script is used to ensure servers are up and running. ... # Need a way to check for an ssh time out/hang on connect ... # - Checking if the ssh session is connecting and then getting term'd ...
  • Re: User Administration Script?
    ... > I will be responsible for user administration on about 100 identical Netra ... All servers will have the same users. ... > Bourne type script that will loop through all the servers running a subshell ... I believe that you will find that ssh is your friend in taking on this task. ...
  • Re: Enforce SSH Login Delay
    ... These are automated attacks from servers, ... discover generic SSH usernames with unsecured login passwords. ... script to scan my secure logs every few minutes and block the IPs automatically. ... Below is the source code to the script noted. ...
  • Re: Deny rules...
    ... services client I have not implemented it. ... Tony Su ... >The Script makes sure the ip to be blocked is not it´s ... >I have few outside servers to connect from to my servers ...
  • Re: Software configuration management tool required
    ... If it automates ... and 100-ish servers, it's just not going to happen. ... you test it by running the rc?.d script that init will ... > because Oracle or some vendor tells them to do so. ...