LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-17-2015, 02:07 PM   #1
BrandonQDixon
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Rep: Reputation: Disabled
SSH Issues over Internet (not local network)


I have been working on setting up my old Ubuntu laptop to use as an SSH server. I can access it over a local network, but am unable to access it over the internet. I am using Google's SSH Client software in both cases. I have ensured that the ports do match. When I try, I get this message:

ssh: connect to host 2601:8d:8380:21:6424:49ec:fef1:4bcc port 2213: Connection refused
NaCl plugin exited with status code 255.

This is before it even prompts me for a password. I do not know much about networking, so if you need me to give any more information, please show me how (give me the command line commands, for example).

Thanks.
 
Old 09-17-2015, 06:04 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
you need to port forward port 22 ( standard ssh port ) to your local macine you also need a static ip adress both on the lan and facing out to the internet.
 
Old 09-17-2015, 06:08 PM   #3
BrandonQDixon
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
I have the port set to a different value that matches on both the server and the client (as various articles recommended I do that). However, I have tried port 22 as well, and I get the same error. I believe the ip address is static, as it has remained the same each time I've checked it. Is there a way for me to be sure?
 
Old 09-17-2015, 06:12 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
a number of sites will report your outward facing ip try:
https://www.grc.com/x/ne.dll?bh0bkyd2

you can also use this site to check that your ssh port is responding amongst other things
 
Old 09-17-2015, 07:13 PM   #5
BrandonQDixon
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
I took a look at that site, and it gave me something like this: c-..-...-...-....hsd1.nj.comcast.net (I've replaced the numbers with dots). It also gave me an IPv4 address. However, what I've been using, and what has worked over my local network, is the IPv6 address. It is also the only one that *seems* to be connecting to my server computer at all. The others report nothing, the IPv6 address reports a refused connection.
 
Old 09-18-2015, 03:49 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Din't know much about ipv6 but if you don't have an open connection to your ssh port your firewall must be blocking it, presumably the one in your router as you can connect locally, so thats where you have to forward your port to your local machine running the ssh server.
 
Old 09-18-2015, 07:54 AM   #7
BrandonQDixon
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
So I would need to handle the firewall in the router, not on my computer. How would I go about that?
 
Old 09-18-2015, 07:58 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
That will depend on your router, most have some sort of web interface where you can set various options, check your router manual or the website of the supplier of the router, can't really help with that uunless you happen to use a BT homehub 3 router.
 
Old 09-18-2015, 02:09 PM   #9
BrandonQDixon
LQ Newbie
 
Registered: Sep 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
I am using Comcast, and have been able to get into the settings.

I have tried port forwarding, port triggering, and DMZ, and all of them have failed. I have tried using both the IPv4 and IPv6 addresses for the Ubuntu device, but all reports I run online tell me that the port is closed. It seems the problem is with the Comcast router (or with wrong input on my part).
 
Old 09-18-2015, 05:39 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
seems to be problem with the router, I would suggest asking for help to set it up on the network forum you basicaly cant do anything until you get the port forwarding working, as i said I know nothing about comcast so cant help with that, sorry.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH not connecting over the internet but can connect on the local internet pulper Linux - Networking 4 10-09-2014 03:28 PM
Help with Ubuntu server remote ssh and local network ssh issues using putty. scottpops Linux - Server 8 05-17-2012 05:07 PM
SCP issues over SSH... can't seem to copy from remote to local. ncn8ochaser Linux - Newbie 3 11-18-2010 12:17 AM
SSH over internet local port blocked konqi Linux - Networking 19 12-09-2009 06:23 AM
SSH over the Internet to a local-network-specific IP sadarax Linux - Networking 3 07-30-2007 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration