PDA

View Full Version : [SOLVED] If I change my SSH port number, will my DSA key still work?


mrcoulson
September 19th, 2009, 03:41 PM
I want to change my SSH port number. Will this require a new DSA key? I'm working from home right now and don't want to accidentally lock myself out of the system until Monday morning.

Jeremy

falconindy
September 19th, 2009, 04:16 PM
Your authentication key is recognized because you provided the public half to the ssh server. Changing the port won't affect this in any way.

kevdog
September 19th, 2009, 10:49 PM
a resounding yes -- the key will still work.

mrcoulson
September 20th, 2009, 05:09 PM
Hey, you guys were correct. Unfortunately, however, I can't get in from outside the network now. I believe I need to get our network guy to open my new port at the firewall. Alas. I suppose I'll do something else at home this evening.

Jeremy

kevdog
September 20th, 2009, 05:54 PM
That or you could try reverse tunneling if no outbound ports are not blocked. Yes it is usually more convenient to forward tunnel, but sometimes reverse tunneling can get you out of a jam also -- particularly if you have no control of the intervening firewalls.

mrcoulson
September 20th, 2009, 08:11 PM
Dude, that would be wildly awesome. I hate having to bug the already otherwise super-busy network guy.

How do I do that?

Jeremy

i.r.id10t
September 20th, 2009, 09:07 PM
Look at the -R option to ssh (instead of -L for local forwarding)

mrcoulson
September 22nd, 2009, 12:35 PM
I didn't get that to work, but he was glad to open the port for me.

Thanks!

Jeremy