Run ssh server on my notebook through wireless conection
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.
Yes I was! heres's the output of the requested command:
Code:
Starting Nmap 6.47 ( http://nmap.org ) at 2015-08-18 21:01 BRT
Nmap scan report for ***************.xd-dynamic.algartelecom.com.br (**********)
Host is up (0.0093s latency).
PORT STATE SERVICE
22/tcp filtered ssh
Nmap done: 1 IP address (1 host up) scanned in 1.07 seconds
When I try to connect it gives me connection timed out, as it allways was.
The state should be opened versus filtered. It looks like the router's firewall is still blocking port 22. I assumed you saved the settings in the router. I might reboot it just to make sure it loads the new configuration.
Maybe someone has addressed this, but I skimmed through the posts and, if it was there, I missed it.
If I remember correctly, Ubuntu does not include the ssh server by default, only the client. sshd needs to be installed from the repos. Once it is installed, you can check whether it is running by
Code:
$ ps -A | grep sshd
1239 ? 00:00:00 sshd <---returned if the ssh server is running.
Now I tweaked a little bit and found something called dmz where I placed my notebook stable ip. I definitelly disabled my firewall. Not working yet:
Code:
root@matt-Vostro-5470:/home/matheus# nmap -p 22 ***.***.***.***
Starting Nmap 6.47 ( http://nmap.org ) at 2015-08-18 21:59 BRT
Nmap scan report for 191-054-216-231.xd-dynamic.algartelecom.com.br (***.***.***.***)
Host is up (0.0071s latency).
PORT STATE SERVICE
22/tcp filtered ssh
Nmap done: 1 IP address (1 host up) scanned in 0.71 seconds
root@matt-Vostro-5470:/home/matheus# ssh sshclient@***.***.***.*** -p 22 -vvv
OpenSSH_6.7p1 Ubuntu-5ubuntu1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ***.***.***.*** [***.***.***.***] port 22.
debug1: connect to address ***.***.***.*** port 22: Connection timed out
ssh: connect to host ***.***.***.*** port 22: Connection timed out
root@matt-Vostro-5470:/home/matheus#
I saw somewhere that I can try connecting to my router using telnet and then trying to configure it. It was something useful for the d-link wireless where I read it. But when I tryied "telnet 192.168.0.1 80" It just took a while and returned conection closed by a unkown host ????
I`ll make a test connecting my laptop directlly to my modem throught Lan (wired), then I'll test if ssh from my public ip. If that works the problem is with my router, if that don't there might be something wrong about my Isp, which i hope is not the case. I'm I right? I mean, provided all the situation that I did, this could locate where the throuble is going? Did i think right?
Yes. I would turn on the laptop's firewall as a precautionary measure and as you posted have configured it for ssh. I would also recycle power on the MODEM first since many ISPs will only allow on IP address based on the devices MAC.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.