Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
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?
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
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).
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.