Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

SSH Tunneling without console login

Subject: SSH Tunneling without console login
Date: Thu, 24 Nov 2005 19:19:19 +0100
Question:
Is it possible to use remote port forwarding (tunneling) without having to
login on the console?

Situation:
I have a server (PC1) which is running a SSH service behind a firewall. I do
NOT have any control over the firewall, but I do want to access the SSH
service of PC1 from PC2 over the Internet.

Solution for the situation:
I'm using the following command on PC1 to let PC1 make a SSH-tunnel to PC2
ssh -R 4000:localhost:22 account@PC2
And I have installed a SSH service on PC2 to make tunneling possible.

Same question in detail:
When I use the command above, it will make the tunnel, but I will also make
PC1 login on the console of PC2. That last step is something I do not want.
PC1 should only make the tunnel to PC2, but should NOT login on the console
of PC2.
Is this possible?


-Jesse

<Prev in Thread] Current Thread [Next in Thread>