ssh port changed instead 95 to 995

adolf.goreseb

New Member
Joined
Dec 7, 2021
Messages
2
Reaction score
0
Credits
17
Good Day,

I mistakenly change the ubuntu VPS ssh port to 995(POP3) instead of 95. There are no mail services running on the Ubuntu Server, only Web Services. Please help urgently. Thank you.
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,099
Reaction score
2,848
Credits
29,598
Change it back where you changed it, which will be in the sshd_configuration. I think for Ubuntu that is this file.
Code:
/etc/ssh/sshd_config
Somewhere near the top of that file the port is defined that you changed.
 
OP
adolf.goreseb

adolf.goreseb

New Member
Joined
Dec 7, 2021
Messages
2
Reaction score
0
Credits
17
Change it back where you changed it, which will be in the sshd_configuration. I think for Ubuntu that is this file.
Code:
/etc/ssh/sshd_config
Somewhere near the top of that file the port is defined that you changed.
The only way I can access the VPS Ubuntu is via ssh, is it because port 995 is a known port?
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,099
Reaction score
2,848
Credits
29,598
You should be able to use any port ssh ssh port. I'm not quite understanding you I thought you wanted to change the port back to what you had it before? If you do then you have to connect through the console of your vps provider and then login to your vps to change it from there. Also if you changed it and restart sshd it is now running on port 995 but that the port in the firewall on your Ubuntu vps is not open, you will have to open that the same way so logging into the console of your vps and then opening the port in the firewall.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top