Re: [Sshpass-devel] FW: sshpass at HPUX 11.31
Brought to you by:
thesun
From: LI M. <Mic...@sw...> - 2017-11-13 16:31:47
|
Hi Shemesh, I’ve tested the new patch, it still does not work, got the same error message : $ /tmp/sshpass/sshpass-1.06/sshpass -p Abcd1234 ssh -vvv nledfd02 date OpenSSH_6.2p1+sftpfilecontrol-v1.3-hpn13v12, OpenSSL 0.9.8y 5 Feb 2013 HP-UX Secure Shell-A.06.20.006, HP-UX Secure Shell version debug3: RNG is ready, skipping seeding …… debug2: input_userauth_info_req: num_prompts 1 debug1: read_passphrase: can't open /dev/tty: No such device or address debug3: packet_send2: adding 32 (len 14 padlen 18 extra_pad 64) debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug2: input_userauth_info_req debug2: input_userauth_info_req: num_prompts 1 debug1: read_passphrase: can't open /dev/tty: No such device or address debug3: packet_send2: adding 32 (len 14 padlen 18 extra_pad 64) debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: debug3: authmethod_is_enabled password debug1: Next authentication method: password debug1: read_passphrase: can't open /dev/tty: No such device or address debug3: packet_send2: adding 64 (len 50 padlen 14 extra_pad 64) debug2: we sent a password packet, wait for reply Received disconnect from 10.8.65.51: 2: Too many authentication failures for test1 You can use “__hpux” to distinguish HPUX and others, see below : #include <stdio.h> int main() { #ifdef hpux printf("HPUX\n"); #else printf("Not HPUX\n"); #endif return 0; } # cc -c t.c; cc -o t t.o # ./t Not HPUX #include <stdio.h> int main() { #ifdef __hpux printf("HPUX\n"); #else printf("Not HPUX\n"); #endif return 0; } # cc -c t.c; cc -o t t.o # ./t HPUX # Thanks and regards. Michael Li SWIFT | Security Infrastructure, Messaging Solutions Tel: +1 703 365 6136 www.swift.com <http://www.swift.com/> This e-mail and any attachments thereto may contain information which is confidential and/or proprietary and intended for the sole use of the recipient(s) named above. If you have received this e-mail in error, please immediately notify the sender and delete the mail. Thank you for your co-operation. SWIFT reserves the right to retain e-mail messages on its systems and, under circumstances permitted by applicable law, to monitor and intercept e-mail messages to and from its systems. From: Shachar Shemesh [mailto:sh...@sh...] Sent: Saturday, November 11, 2017 10:24 AM To: LI Michael Cc: SSHPass Development Subject: Re: [Sshpass-devel] FW: sshpass at HPUX 11.31 ----------------------------------------------------------------------------- This message originates from outside our organisation. Please be extra vigilant before you click on a link, open attachments or reply. ----------------------------------------------------------------------------- On 06/11/17 16:43, LI Michael via Sshpass-devel wrote: Hi Shemesh, Thank you very much for your reply. I am greatly appreciated you will provide me a patch. I tried “sleep 20 >/dev/null 2>&1 </dev/null” on my HPUX box, pressing Ctrl-C cannot abort the sleep, but on my linux box, pressing Ctrl-C aborts the sleep. Thanks and regards. Michael Li SWIFT | Security Infrastructure, Messaging Solutions Tel: +1 703 365 6136 www.swift.com <http://www.swift.com/> Hi, Can you please test the attached patch and see if it solves your problem? Also, please run the program below and let me know what it prints: #include <stdio.h> int main() { #ifdef hpux printf("HPUX\n"); #else printf("Not HPUX\n"); #endif return 0; } Thanks, Shachar |