Re: SSH command line syntax - port redirection

From: Louis McKinley <dalouism_at_**********.***>
Date: Tue Sep 11 2007 - 15:46:33 EDT

Hi Alex,

I do not have access to my SSH computers this week, so I am writing
this by memory.

> ssh -p 22 -L 5900:127.0.0.1:5900 -l <username> <Dad's IP address>

I use PuTTY to make my SSH sessions. Comparing what I do in PuTTY to
what you are doing on the command line, I speculate that the command
should be this :

 ssh -p 22 -L 5901:<Dad's IP address>:5900 -l <username> <Dad's IP address>

Then when you use VNC, use 127.0.0.1:1. The port 1 at the end of that
address equals 5901 - 5900.

> I get the familiar SSH login screen and can authenticate and work on
> the command line. At the point of authentication I get an error
> message that the shell could not change to /home/username due to
> "access denied". I've checked the permissions on my profile directory
> and my user account has Full Control, as has the System special
> context. I don't know if this is related to my problem, or if it's
> merely a minor annoyance.

Are you sure that the SSH's passwd file is up to date? Run mkpasswd
and mkgroup. Also, SSH has two settings in Windows Start menu, a
server configuration and a user configuration.

> Conversely, on Dad's machine, VNC is listening on TCP port 5900 and so
> is sshd. If I exit from the SSH console, sshd stops listening to port
> 5900. I'm mystified why two different applications are listening on
> the same TCP port. I was under the distinct impression only one
> application could use a given port at a time. I don't know if this is
> relevant.

That does not look right to me. One of them should be 5800.

 / Louis

--
List Info:      http://erdelynet.com/ssh-l/
List Archives:  http://erdelynet.com/archive/ssh-l/
To Unsubscribe: Mail mailto:ssh+unsubscribe@erdelynet.com
Received on Tue Sep 11 15:46:43 2007

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2007 - 15:46:44 EDT