Request help to manage ssh password



Hi all

I need some help to manage ssh password in a tunnel command line.

I am using ssh to create a tunnel. From a windows box I use putty to
connect to the ssh server. The beginning of the tunnel is defined in
putty client and the end of the tunnel is on the ssh server with the
command line like this one:
ssh -L 50023:lanserver:23 vpnuser@sshgateway -p 443 (this is an
example for telnet).
The tunnel works fine.

Now I want to establish on the server a permanent ssh port forwarding.
I tried ssh-keygen and I could log with no password with
vpnuser@sshgateway, but when issuing the command ssh -L
50023:lanserver:23 vpnuser@sshgateway -p 443 it told me permission
denied. I tried a lot of things but I did not succeded to set up ssh
forwarding without password and without logging with vpnuser. I also
would like to be able to establish the ssh port forwarding in
background with a user that as no shell using a bahs script.

Help would be appreciated.
Thanks in advance.
Mik
.



Relevant Pages

  • Re: What is The SSH?
    ... Building and Using SSH Tunnels ... What is an SSH tunnel? ... how to use it to make a connection to a server. ... You will need a working SSH client and server installation to build and test ...
    (microsoft.public.windows.server.networking)
  • ADO.NET/Jet connection string using SSH tunnel
    ... SSH Server running on a machine on our local network - on that machine ... "server," using an ADO.NET connection string that somehow uses the ... tunnel to specify the location of the database it wants to connect to. ... I know I will use the sshg3 command (which I understand is Tectia's ...
    (comp.security.ssh)
  • Re: Real Survivalists Dont Do Windoze
    ... I'm on a Red Hat Linux laptop running TightVNC over a ssh tunnel ... 'Source port' is your port of choice for your VNC-client to connect. ...
    (misc.survivalism)
  • Re: vnc over ssh
    ... SSH. ... So the following line would set up the tunnel to VNC the remote machine ... > i run cygwin by clicking on a shortcut. ... > is there a one line command i can use to set up the port forwarding on ...
    (comp.security.ssh)
  • RE: HOWTO Ping LAN???
    ... SSH to the box, and tunnel to other internal machines ... > network is by tunneling. ...
    (freebsd-questions)