Re: SSH problem

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

 



Well, not it asks for password...
 
What do I do?, I dont think I can pass password from within a script, there's no such option as far as I know of.
But cant really understand, it was working very fine in similar conditions earlier...
 
Anyways, thanks a lot for ur time. Please let me know, if u can help me further with it.
Nitin
----- Original Message -----
Sent: Friday, May 14, 2004 1:23 PM
Subject: Re: SSH problem

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
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 -----
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
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
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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


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


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


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


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux