SSH & controlling tty
From: A.J (aajii@yahoo.com)
Date: 11/21/02
- Next message: Isaac: "Re: putty, openssh and e-smith: key is wrong type...."
- Previous message: Ian! D. Allen: "Re: incorrect "host key changed" for multi-sshd localhost"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "A.J" <aajii@yahoo.com> Date: Thu, 21 Nov 2002 09:03:57 GMT
Hi
SunOS localhost 5.8 Generic_108528-17 sun4u sparc SUNW,Sun-Fire-280R
OpenSSH-3.1p1
I'm using a perl program which uses IO::Pty for communicating with
ssh program like this:
open( 'ssh', -l test -A -x -i /tmp/sblast-ssh-home-29696/identity -e
none -o FallBackToRsh no -o NumberOfPasswordPrompts 1 -o
UserKnownHostsFile /tmp/sblast-ssh-home-29696/known_hosts -o
StrictHostKeyChecking no, 127.0.0.1 )
What I want is the script to harness ssh to a pty and acting as a user
so
that I can type in phassphrase and password like a normal user. I cannot
use publickey in this case.
DISPLAY variable is set:
Warning: Identity file /tmp/sblast-ssh-home-29696/identity does not
exist.
Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts.
ssh_askpass: exec(/usr/local/openssh/libexec/ssh-askpass): No such file
or directory
DISPLAY variable not set:
Warning: Identity file /tmp/sblast-ssh-home-29725/identity does not
exist.
Warning: Permanently added '127.0.0.1' (DSA) to the list of known hosts.
Permission denied (publickey,password).
Manually:
ssh -l test 127.0.0.1
test@127.0.0.1's password:
Authentication successful.
Last login: Thu Nov 21 2002 08:35:10 from localhost
No mail.
>
F-Secure SSH 2.4.0:
with DISPLAY variable set popups a passphrase window and after that
popups passwd window. Not wanted.
with DISPLAY variable not set:
You have no controlling tty and no DISPLAY. Cannot read passphrase.
warning: Authentication failed.
Disconnected; authentication cancelled by user (Authentication cancelled
by user.).
The question is: how do openssh and f-secure ssh figure out that the tty
in case
isn't a controlling tty? Is there any way to go round it, to make
underlying program
think that indeed it's a controlling tty?
-AJK
- Next message: Isaac: "Re: putty, openssh and e-smith: key is wrong type...."
- Previous message: Ian! D. Allen: "Re: incorrect "host key changed" for multi-sshd localhost"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|