Jump to content

So, I have a remote SSH connection to an Ubuntu Server machine about... 100 miles away and I'm trying to configure an email server on said machine. Trouble is, I need to get into the router, that's 100 miles away, to do some port forwarding to allow those ports to go through. 

Now if I were a sane person I'd have installed a VPN, or remote control on a computer on that local network to talk to the router, but I'm not a sane person, so I didn't. 

I have a couple questions, starting with:

  1. CAN THIS EVEN BE DONE?
    • Keep in mind that the OS that I'm talking to from 100 miles away is the Server version of Ubuntu, and, therefore doesn't have a GUI, so, it can't render "graphics" past ascii, so I can't do the linux equivalent of going into windows and setting up a remote desktop connection.
    • The router in question is a "cisco dpc3848vm" it was stock from the ISP in the area.
  2. What do I need to do to set this up in any semblance of a timely manner?
  • If there's packages that need to be installed on the Ubuntu machine to talk to the router itself
  • Will there be any funny business to get the Ubuntu machine to communicate to the router?
  • What's the process to do this sort of thing (if at all possible)
    • Meaning, the installation process (if necessary)
    • Configuration of any packages that'll be required
    • Getting the Ubuntu machine to communicate to the router
    • Getting the port-forwarding to happen.
Link to comment
https://linustechtips.com/topic/738399-ssh-to-foreign-router-through-ubuntu-server/
Share on other sites

Link to post
Share on other sites

You should be able to ssh into the router after ssh into ubuntu. You could also try install Xserver and Firefox then use the -X switch, ssh -X, to log in and you will be able to launch a Firefox browser to go to router web console, or any xwindows application and it will run from your server 

             ☼

ψ ︿_____︿_ψ_   

Link to post
Share on other sites

13 hours ago, SCHISCHKA said:

You should be able to ssh into the router after ssh into ubuntu. You could also try install Xserver and Firefox then use the -X switch, ssh -X, to log in and you will be able to launch a Firefox browser to go to router web console, or any xwindows application and it will run from your server 

How do i ssh into my router? just "ssh [ip address of router]"?

Link to post
Share on other sites

4 minutes ago, whiteGloveReview said:

How do i ssh into my router? just "ssh [ip address of router]"?

yep. admin@192.168.1.1 or .254 what ever your routers address and account name is. If it doesnt have ssh it might have telnet

             ☼

ψ ︿_____︿_ψ_   

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×