SSH problem

Jim Herrick jim at bleedpurple.com
Fri May 14 07:53:22 UTC 2004


Nitin,

The shell for my user named 'apache' (on Fedora Core 1) is /bin/false.  Here's the apache line from /etc/passwd:

  ~> grep apache /etc/passwd
  apache:x:48:48:Apache:/var/www:/bin/false

Try a user with some sort of interactive shell.

Jim
  ----- Original Message ----- 
  From: Nitin 
  To: General Red Hat Linux discussion list 
  Sent: Friday, 14 May, 2004 07:39
  Subject: Re: SSH problem


  Thanks for reply Jim. 

  I dont know about the mising character, but it works interactively and was working from within script earlier.

  But the diff between interactive session and through script is, that from within script 'APACHE/NOBODY' invokes the command while in interactive scenerio, I log in using same username from diff server.

  But again, same script was working earlier, and I'm sure I didnt change it earlier to be used by APACHE.
  Any help........

  Thanks anyway
  Nitin
    ----- Original Message ----- 
    From: Jim Herrick 
    To: redhat-list at redhat.com 
    Sent: Thursday, May 13, 2004 8:31 PM
    Subject: Re: SSH problem


    Nitin,

    Could it be an expected character in your script?  You might want to include this part (or all) of it.

    Does the SSH session launch successfully when run interactively (using the same user and password)?

    Good luck,

    Jim

      ----- Original Message ----- 
      From: Nitin 
      To: redhat-list at redhat.com 
      Sent: Thursday, 13 May, 2004 16:56
      Subject: Fw: SSH problem


      Apologies for re-submission, but if anybody can help me out of this ????????

      ----- Original Message ----- 
      From: Nitin 
      To: redhat-list at redhat.com 
      Sent: Thursday, May 13, 2004 11:41 AM
      Subject: SSH problem


      Hi all,

      I'm facing a problem here and it's urgent.
      I was using ssh from within my script to execute some commands on another server as a different user (with SSH and SUDO). 2 days back my server failed and I had to restore it. Now, it's about 90% up, but I'm facing this new problem. 

      When my script runs, it displays message 

      Aborted by user!

      for the ssh part. Below is the output of debug command, cant really understand it:

      OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: Seeding random number generator
      debug1: Rhosts Authentication disabled, originating port will not be trusted.
      debug1: restore_uid
      debug1: ssh_connect: getuid 48 geteuid 0 anon 1
      debug1: Connecting to kipl2.kappa.net.in [210.212.102.3] port 22.
      debug1: temporarily_use_uid: 48/48 (e=0)
      debug1: restore_uid
      debug1: temporarily_use_uid: 48/48 (e=0)
      debug1: restore_uid
      debug1: Connection established.
      debug1: read PEM private key done: type DSA
      debug1: read PEM private key done: type RSA
      debug1: identity file /var/www/.ssh/identity type -1
      debug1: identity file /var/www/.ssh/id_rsa type 1
      debug1: identity file /var/www/.ssh/id_dsa type 2
      debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1
      debug1: match: OpenSSH_3.5p1 pat ^OpenSSH
      Enabling compatibility mode for protocol 2.0
      debug1: Local version string SSH-2.0-OpenSSH_2.9p2
      debug1: SSH2_MSG_KEXINIT sent
      debug1: SSH2_MSG_KEXINIT received
      debug1: kex: server->client aes128-cbc hmac-md5 none
      debug1: kex: client->server aes128-cbc hmac-md5 none
      debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
      debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
      debug1: dh_gen_key: priv key bits set: 118/256
      debug1: bits set: 1597/3191
      debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
      debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
      Aborted by user!
      debug1: Calling cleanup 0x8063570(0x0)

      If anybody can help me out of this and as soon as possible, I'll really appreciate that. Any help, suggestions.......plz

      Thanks in advance
      Nitin


--------------------------------------------------------------------------


      -- 
      redhat-list mailing list
      unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
      https://www.redhat.com/mailman/listinfo/redhat-list



--------------------------------------------------------------------------


      -- 
      redhat-list mailing list
      unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
      https://www.redhat.com/mailman/listinfo/redhat-list



----------------------------------------------------------------------------


    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list



------------------------------------------------------------------------------


  -- 
  redhat-list mailing list
  unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
  https://www.redhat.com/mailman/listinfo/redhat-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-list/attachments/20040514/6af8746b/attachment.htm>


More information about the redhat-list mailing list