Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1 votes
0 answers
31 views

SSH not working on port22 after checking open port, updating UFW, port fowarding on router and confirming internet carrier ports status with carrier

This is my first time trying to make an SSH tunnel. The purpose is to make an offsite backup our server (server A) in the office which is about 1 mile away. I have set up all ports on the office ...
Tyran Mincey's user avatar
0 votes
2 answers
111 views

Portforwarding Port 22 ( for ssh ) over JioFiber Router not working ( port 22 is closed )

I am using a JioFiber Router ( Firmware version : SRCMTF1_JCOW414_R2.52.1 ) . The host that I want to expose to the internet has Ubuntu Server 24.04. Private IPs : Router ...
ubuntu-server-noob's user avatar
0 votes
0 answers
53 views

Ports show as open when nmaping to localhost but filtered when connecting to IP

My 22.04.4 Ubuntu server was installed on a Proxmox VE. Then I installed Discourse forum on top of it (it uses Docker). Now, after successful installation the Docker's 443/80 ports show as closed when ...
Marek Wojtaszek's user avatar
1 vote
0 answers
41 views

Unable connect via port knocking

I am trying to set up port knocking on my server to enhance security. I've configured my firewall rules to use port knocking, where I have to connect to specific ports in a specific sequence before ...
noobintech's user avatar
0 votes
0 answers
192 views

ufw rule to allow address on the same subnet?

I have a server running Linux hosting a website. It uses ufw as a firewall. I have ports 80 and 443 open to external traffic. This all works. Now what I want to do is allow any traffic from my laptop ...
Mark Challice's user avatar
0 votes
2 answers
469 views

Cannot access any service running on ubuntu server including SSH

Problem: I'm unable to access any service running on by Ubuntu 22.04, including SSH. This server has been running for months without any issues. It currently hosts a frontend as well as 3 different ...
arsenal_fan_2004's user avatar
4 votes
1 answer
955 views

I can't connect to Ubuntu server from local network, but can from outside

This is a weird one that has been driving me crazy for a while. I just can't work it out. I'm running Ubuntu 22.04 (with all latest patches) on a Dell PowerEdge-r710 server. It's hosting a variety of ...
Joseph Jaquinta's user avatar
0 votes
0 answers
2k views

SSH Connection Timed Out Ubuntu 20.04

I've looked through a million threads on this topic but nothing has worked. I'm trying to ssh into my linux through port 22. Connection is refused. UFW is inactive and firewall-cmd is not downloaded ...
SC542164's user avatar
0 votes
0 answers
701 views

Connection via SSH works once or twice then never again for that client

I have recently set up a Ubuntu Server minimized. I initially used the server through an SSH with client1 but after one use I kept getting Connection Timed Out when attempting to ssh from client1. I ...
Austin Plunkert's user avatar
0 votes
0 answers
53 views

Uable to connect Ubuntu server by remoting

Hello I'm newbie of Ubuntu system. I have some problem that I've figured out for a while but I could not solve it yet. I could not remote to Ubuntu 22.04 server from my laptop (Putty said connection ...
Pongsakorn Kanjanatanin's user avatar
0 votes
1 answer
171k views

Mikrotik SSHD error: connect to host 9x.xxx.xxx.xxx port 7346: Operation timed out

I changed the router for my dedicated server from TP-Link to MikroTIK and upgraded router os to 7.8, the configuration on the host machine itself did not change, only the router was changed: I opened ...
Riven's user avatar
  • 21
0 votes
0 answers
404 views

Cannot SSH into host on local network using TCP wrappers, despite allowing "sshd : LOCAL" in /etc/hosts.allow

I have two servers running ubuntu server 22.04.2 LTS on my local network, the servers have the following names and IP addresses: ubuntuserver100 - 192.168.50.100 and ubuntuserver101 - 192.168.50.101 ...
Thomas Grusz's user avatar
1 vote
1 answer
590 views

SSH configured ports not working

Just installed Kubunut 22.10. I configured my /etc/ssh/sshd_config with a custom port. # Snip Port 5555 AllowUsers bob # Snip Then restart the daemon to refresh the configuration: sudo ufw allow 5555 ...
C.D.'s user avatar
  • 341
0 votes
0 answers
164 views

Can't get ssh working on Ubuntu

I am trying to follow this guide to get phpMyAdmin installed on Ubuntu 20.04. The first step is to set up a non-root user, and it's here that I'm stuck. I cannot log in to root@public_server_ip. I am ...
cohara's user avatar
  • 1
0 votes
1 answer
3k views

How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world?

How to enable a specific port on Ubuntu version 22 so that it is accessible to outside world? I am already logged into the server through ssh using port 22 and able to successfully execute all the ...
Nital's user avatar
  • 101
0 votes
0 answers
1k views

ssh: connect to host ********* port 22: Connection timed out

I have Ubuntu 22.04 newly installed on my laptop. I am trying to connect to a remote server and getting the following error: ssh: connect to host ********* port 22: Connection timed out I tried some ...
Maliha Kabir's user avatar
0 votes
0 answers
62 views

Can't access Ubuntu Server with SSH after doing something with iptables

I'm trying to run a MC-Server on an Ubuntu Sever (Oracle Cloud). I already port forwarded 25565 and 22 but still couldn't access the server. I found these commands on another tutorial, but when I ...
Julian M's user avatar
0 votes
0 answers
106 views

ubuntu ngnix aws lightsail server cant able to access via putty

After changing the firewall settings in the server. I cant able to access via putty. I tried to install ssl certificate, where I supposed to change the firewall settings. I also tried rebooted the ...
DroidDev's user avatar
  • 101
1 vote
0 answers
144 views

How to set up UFW port forwarding from non-privileged port to port 22 on the same computer

On my Ubuntu server, I am running an SSH server (port 22). I want to set up UFW such that all incoming connections are blocked, except through port 12345. External traffic arriving at port 12345 ...
Flux's user avatar
  • 505
1 vote
1 answer
4k views

UFW firewall create connection issues

I have installed UFW on my VPS server using apt install ufw when I use ufw enable to start the firewall, after that my putty session expires and I can no longer login with that ssh key I have either ...
Raghav Patel's user avatar
1 vote
1 answer
3k views

Yet another SSH connection timeout [closed]

This one is puzzling me to no end. By using PuTTY (latest version) I was able to connect from Windows 10 to Ubuntu 18.04 via SSH (local network), and I've been doing it for over a year until it ...
zenetx's user avatar
  • 21
0 votes
1 answer
1k views

SSH Over VBox NAT NOT Working Ubuntu 20.04 Host (desktop) Ubuntu 20.04 server (guest)

I can get internet on guest by setting vbox adapter 1 to bridged network adapter and host-guest communication works when I set adapter 2 as a host-only adapter This is sufficient if I don't want to ...
nightwatch's user avatar
0 votes
0 answers
310 views

Why do I see login requests for various ports although the router and the firewall only permit port 22?

I want to login into the Desktop of my Ubuntu 18.04 machine remotely from the internet. I therefore enabled port forwarding for port 22 in my (fritz.box) router. Additionally I activated the firewall ...
user312087's user avatar
1 vote
0 answers
2k views

ssh: port 22 Connection refuses

I have a question regarding remote access a machine via ssh. I'm trying to ssh login to my linux machine from my mac and I already setup the ssh-server on my ubuntu, opened the 22 port and firewall. ...
Ge Yan's user avatar
  • 11
0 votes
2 answers
1k views

Iptables that only allow incoming traffic to OpenSSH and block all other traffic

I need to configure a firewall using iptables that only allows incoming traffic to the openssh services and block all other traffic. I know how to block all incoming traffic but don't know how to only ...
Nigel Wash's user avatar
0 votes
0 answers
41 views

Digital Ocean Ubuntu 18.0.x ssh user@ip_address refused (publickey), now Github Doesn't recognize my computer. What's up? Should I be worried?

I'm using a Digital Ocean Ubuntu 18.0.x instance and connecting from my Ubuntu machine and my Mac. when I ssh user@ip_address I get the message summarized to this will be added to authorized_keys (or ...
nstone101's user avatar
0 votes
1 answer
619 views

IPTABLES/UFW: Deny ssh (on alternate port) requests from WAN, and allow ssh (on alternate port) from LAN. HOW TO?

I am running Ubuntu server version 20.04. I have configured my ssh server to listen on an alternate port (port 40001) in my sshd_config file. I want to allow incoming traffic from anywhere on my local ...
DanRan's user avatar
  • 113
1 vote
1 answer
6k views

On a new Ubuntu Server 20.04 install I can't connect to anything via my local network, i.e. Ping, SSH, etc. what steps should I take now?

I have a fresh install of Ubuntu Server 20.04. It's been a while since I've used Ubuntu and I'm at a loss on how to troubleshoot this next. My goal is, I'm trying to install Octoprint. I have it ...
Rick's user avatar
  • 21
0 votes
1 answer
664 views

SSH tunneling blocked on 20.04 LTS?

I tried using Hamachi to play with a friend and he told me there was a vpn error next to my name. We could not connect at all and I tried everything to fix it. According to this website https://...
user avatar
0 votes
4 answers
2k views

I have a problem with SSH (or any port) I can't fix

I own a refurbished HP Proliant DL380 G7, for a small project I've been working on (It’s the first time using a server and setting it up). But after I set up Ubuntu 20.04 on it, the first thing I did ...
Stone Scone's user avatar
0 votes
1 answer
349 views

SSH tunneling IP filtering

I have created this tunnel on server 10.1.1.1: ssh -f -N -o -L 8789:10.2.2.2:22 [email protected] This allows me to connect from local server to the remote server, through port 8789, like so : ssh -p 8789 ...
AlexP's user avatar
  • 123
0 votes
0 answers
610 views

How can Ngrok tunnel when ufw denies the port

This is a theoric question: I'm on Linux Ubuntu 20 and I've installed ngrok tunneling service to let my computer be reached from outside my local area network. I've started locally a webserver on http:...
Alessandro Argentieri's user avatar
1 vote
0 answers
1k views

How do I confirm ufw is working using nmap from the local system?

I have enabled Uncomplicated Firewall on Ubuntu Focal: # ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip And yet, ...
therealneil's user avatar
2 votes
0 answers
1k views

UFW enable freezes current SSH session port 22 open

Working on a VPN killswitch and playing with UFW. I'm experiencing a putty SSH session freeze when enabling UFW. Port 22 is open and it only freezes the session where the UFW enable command was sent ...
Sidewyz1's user avatar
1 vote
1 answer
1k views

Why is iptables -F kicking me out of my ssh session?

I wanted to add some rules to iptables from this question and answers to route traffic from torrent programm Transmission through a vpn (surfshark in my case). At least two of the answers use iptables ...
bomben's user avatar
  • 2,059
0 votes
1 answer
326 views

I can ssh to the server but port is not listed as open

I can easily ssh to the server using ssh [email protected] -p 42912 But from inside the server if I run sudo netstat -tulpn I get: Why the port 42912 is not listed?
Zied Feki's user avatar
  • 101
1 vote
1 answer
5k views

No SSH access after accidentally denied ssh in ufw/iptables on Snappy Ubuntu Core

I´m running Snappy Ubuntu Core 18.04 on Intel Nuc, located on other location then where I live permanently. Now I have accidentally denied SSH in iptables with use of ufw and SSH connection is not ...
Ismar Slomic's user avatar
0 votes
2 answers
11k views

Remote desktop can't connect to the remote computer for one of these reasons

I am newbie to Google Cloud. I tried to access my Linux VM from RDP, but it is giving me the following error: My firewall rules are as follows:
Maqsud Inamdar's user avatar
1 vote
1 answer
6k views

2013 - Lost connection to MySQL server at 'reading initial communication packet', system error: 0 "Internal error/check (Not system error)"

I have these users in MySQL User Host debian-sys-maint localhost mysql.session localhost mysql.sys localhost root localhost I want to connect to it remotely from my mac via SSH I can't connect. ...
code-8's user avatar
  • 195
0 votes
0 answers
968 views

Cant access Ubuntu server via SSH after setting UFW policy

I ran the command ufw allow from server_1 proto tcp to any port 22 in my second server, but now I can't ssh back into the server. What am I doing wrong? I used ssh ubuntu@server_ip from server_1 ...
flourishk's user avatar
0 votes
1 answer
103 views

Cannot connect to Ubuntu LTS from another network

I'm using Ubuntu 18.04.3 LTS on VirtualBox (Windows) with DHCP ip configuration. In other words, I haven't configured anything. Well, I HAVE updated all packages and installed ssh server and midnight ...
CubeMage's user avatar
0 votes
0 answers
500 views

ufw prevents ssh into machine if it's connected to wireguard (Nordvpn)

I have several Ubuntu machines at home, some of them have ufw enabled and some not, I can ssh between them ok. The problem comes when I connect a machine to wireguard vpn(Nordvpn service), from that ...
blades's user avatar
  • 85
1 vote
0 answers
1k views

Can't ssh to my server if ufw is disabled

Yesterday I changed the default ssh port in my server to 6000. Now here is my problem: When the server boots up, ufw is inactive. This results to not being able to ssh to my machine. However, when I ...
Manos Kounelakis's user avatar
-1 votes
1 answer
337 views

How can I reboot or access cloud server without port 22 being open?

I disabled port 22 by mistake on my cloud server and now am not able to ssh it. I unexpectedly closed port 22 by ufw command (firewall level). Is there any way to login that server? The server is ...
Jasil Op's user avatar
1 vote
2 answers
6k views

I can't ssh into my Ubuntu VM

So I've gone through my notes and tried to install the Oracle virtual box that can run Ubuntu. Additionally I've been having issues with using SSH, the really long details for the process of setting ...
Unais221's user avatar
0 votes
0 answers
3k views

ssh: connect to host username@somehost port 22: connection refused

Before you mark it as duplicate, I know it's been asked before, but I tried the solutions that are accepted, nothing worked for me yet. I'm working on Ubuntu 18.04.2 LTS, I had the server mounted ...
fawaz.d's user avatar
1 vote
1 answer
2k views

Question about SSH and UFW

I am sorry if this is a dumb question. Basically, I wanted to enable a ssh connection to github. I am not that much familiar with ssh(and UFW) so I was wondering if I need to activate UFW to secure my ...
Darshan's user avatar
  • 249
1 vote
0 answers
2k views

ssh connection refused, port listening, process running, IP address not banned

$ git pull ssh: connect to host HOSTNAME port 22: Connection refused This only happens when the client is connected to one specific wireless network. If I connect from a wired connection (even in ...
angelax's user avatar
  • 11
1 vote
1 answer
1k views

Map a range of ports to another range of ports (equal lengths of ranges)

In this answer, How can I open a range of ports in ubuntu using (g)ufw, a simple command for opening a range of ports is given. For example, using this command I can open the ports 1000-1999 very ...
nick carraway's user avatar
0 votes
0 answers
725 views

I can ssh via port 42043, but not via port 7999 (connection refused)

I have the following setup in my ~/.ssh/config file: Host atlas user dci HostName <redacted> Port 42043 AddressFamily inet GSSAPIAuthentication no I can connect to ...
Ben Hocking's user avatar