Quantcast
Channel: How do I work out which port to log in on with SSH? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 7 View Live

Answer by MJD for How do I work out which port to log in on with SSH?

$ sudo netstat -lntp[sudo] password for XXX:Active Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program nametcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN...

View Article



Answer by Mark for How do I work out which port to log in on with SSH?

If you don't have login access to the server, you can find the SSH port using nmap's "version scan" feature:nmap -sV -p- <insert target's IP here>The -sV option means "version scan", and -p-...

View Article

Answer by Braiam for How do I work out which port to log in on with SSH?

The easier way is just looking at the SSH server configuration files:➜ ~ sudo grep Port /etc/ssh/sshd_config Port 22There's also checking for listening ports per process with lsof:sudo lsof -Pi | grep...

View Article

Answer by Archemar for How do I work out which port to log in on with SSH?

If you don't have access to the server's console, you'll have to probe all the ports from a distant host. These utilities are like nmap, however the network layer must relay traffic to the specific...

View Article

Answer by Marcos Dione for How do I work out which port to log in on with SSH?

First check on the config file which port is configured:$ sudo grep Port /etc/ssh/sshd_configPort 22Then either restart ssh to make sure it loads the config you just saw or find out on which port ssh...

View Article


Answer by terdon for How do I work out which port to log in on with SSH?

If you have access to the server through other means, just run:$ sudo grep Port /etc/ssh/sshd_config Port NNNThat will return a line like the one shown above where NNN will be the port you chose.

View Article

How do I work out which port to log in on with SSH?

I have an Ubuntu 10.04 server setup remotely that I setup a while back. While I recorded the username and password, I seem to have been clever and changed the usual ssh port from 22 to... something...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images