problem with plink and remote command
From: Pascal Legrand (Pascal.Legrand_at_univ-orleans.fr)
Date: 03/26/04
- Next message: Owen Dunn: "Re: problem with plink and remote command"
- Previous message: Pascal Legrand: "Re: Run commands on a remote machine through SSH"
- Next in thread: Owen Dunn: "Re: problem with plink and remote command"
- Reply: Owen Dunn: "Re: problem with plink and remote command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 26 Mar 2004 11:49:14 +0100
hello
in first sorry for my poor english.
i've got a problem with the plink command.
i would like to connect to a linux server with ssh, from a windows client with plink, and after use vnc.
when i use the following command:
plink -ssh -v -2 -i "c:\logici~1\putty\clef\serveu~1.ppk" -L 3000:192.168.151.199:5901
root@192.168.151.199
and just after in the shell "vncserver", all is ok, the tunnel exist and vncserver working good.Then
if y want to do that in a batch file, the command line become :
plink -ssh -v -2 -i "c:\logici~1\putty\clef\serveu~1.ppk" -L 3000:192.168.151.199:5901
root@192.168.151.199 vncserver.
but it dont works i've got the following error
Server sent command exit status 0
All channels closed. Disconnecting
i dont know where is the problem
here is the log with the verbose option of plink
Server version: SSH-1.99-OpenSSH_3.7.1p2
We believe remote version has SSH1 ignore bug
We claim version: SSH-2.0-PuTTY-Release-0.54
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 1024 bb:20:5b:f7:80:a7:37:a6:d1:1d:11:9c:2e:45:8a:6c
Initialised AES-256 client->server encryption
Initialised AES-256 server->client encryption
Using username "root".
Reading private key file "c:\logici~1\putty\clef\serveu~1.ppk"
Offered public key
Offer of public key accepted
Authenticating with public key "Serveur-de-test-dsa-key-20040309"
Access granted
Opened channel for session
Local port 3000 forwarding to 192.168.151.199:5901
Started a shell/command
New 'X' desktop is test.iut-chartres.fr:6
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test.iut-chartres.fr:6.log
Server sent command exit status 0
All channels closed. Disconnecting
- Next message: Owen Dunn: "Re: problem with plink and remote command"
- Previous message: Pascal Legrand: "Re: Run commands on a remote machine through SSH"
- Next in thread: Owen Dunn: "Re: problem with plink and remote command"
- Reply: Owen Dunn: "Re: problem with plink and remote command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|