LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   security of your machine when connecting to exposed server via ssh (http://www.linuxquestions.org/questions/linux-security-4/security-of-your-machine-when-connecting-to-exposed-server-via-ssh-926205/)

loolooyyyy 01-28-2012 12:47 PM

security of your machine when connecting to exposed server via ssh
 
if somebody gains control of the server i'm connecting to using ssh (creating a socks tunnel)
does he have access to my machine?
i am behind a router, acting as a firewall, not giving access to ports on my machine from outside the network

how about when forwarding a single port? (port 80), do they still have access?

unSpawn 01-28-2012 03:25 PM

Quote:

Originally Posted by loolooyyyy (Post 4586890)
if somebody gains control of the server i'm connecting to (..) does he have access to my machine?

Controlling the remote host you SSH to or through means the perp in theory controls whatever you execute on, get from or send through that host. Since you only tunnel encrypted SSH traffic through the remote host and don't allow new connections to your LAN machine behind your LAN router / firewall and only use SSH with pubkey auth and your remote host uses a unique password or (better) pass-phrase the risk of the perp finding a way in through that connection is infinitesimal.

loolooyyyy 01-29-2012 03:26 PM

since the way ssh works for tunneling is creating another ssh connection from server to host(my machine), doesnt this mean they have access for execution of commands?

unSpawn 01-29-2012 04:10 PM

Looks like something you could do the groundwork for yourself: create your SSH tunnel (you never listed if you were using a reverse tunnel or not BTW), log in on the remote host, then try to execute commands through your tunnel.

loolooyyyy 01-30-2012 07:58 AM

dear unSpawn
i'm using the reverse tunnel for bypassing some restriction (a SOCKS proxy), that's what the -D option does (reverse tunnel), right?

unSpawn 01-30-2012 08:37 AM

"-D" just means dynamic and using it doesn't make it a "reverse tunnel".

loolooyyyy 01-31-2012 05:35 AM

thank you unSpawn!! a lot


All times are GMT -5. The time now is 07:47 AM.