Jump to content


Photo

Change port for ssh?


  • Please log in to reply
5 replies to this topic

#1 magnumkhan

  • Member
  • 19 posts

0
Neutral

Posted 16 October 2013 - 05:58

Hello !

 

I read that openpli runs SSH as default, is it possible to change the the port number? And if so, then how?

 

Thanks in Advance

 

The Khan



Re: Change port for ssh? #2 littlesat

  • PLi® Core member
  • 56,369 posts

+692
Excellent

Posted 16 October 2013 - 08:04

Why do you want to change the port number in the image itself...

I suggest it might be better to arrange that at the router... Forward port X externally to ip.adres.pli.box port 22.....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Change port for ssh? #3 magnumkhan

  • Member
  • 19 posts

0
Neutral

Posted 16 October 2013 - 08:42

Hi!

 

My router (buffalo airstation) don't support that feature. Can't re-route port for example 15023 to 22.

 

Thanks anyway!



Re: Change port for ssh? #4 littlesat

  • PLi® Core member
  • 56,369 posts

+692
Excellent

Posted 16 October 2013 - 08:47

Wierd... as this should be a basic feature of any router...???


Edited by littlesat, 16 October 2013 - 08:51.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Change port for ssh? #5 magnumkhan

  • Member
  • 19 posts

0
Neutral

Posted 16 October 2013 - 09:01

Yep, maybe I can put open WRT in my buffalo router, and get the port re-routing feature?

Or buy a new router. I was hoping there would have been a "ssh.conf" type of file in openpli and it would be easy to fix it.

 

Thanks



Re: Change port for ssh? #6 MiLo

  • PLi® Core member
  • 14,049 posts

+298
Excellent

Posted 16 October 2013 - 15:36

Check /etc/init.d/dropbear and /etc/default/dropbear. These are shell scripts (well, sort of).

You can set extra commandline options for the SSH server in an environment in /etc/default/dropbear. Read the dropbear manual page (hint: google) to find the commandline switch to do that. Probably it's something like "-p 12345" or so.
Real musicians never die - they just decompose


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users