Score:0

Blocked port 22 but still have root access to ftp

za flag

recently I messed up hard and blocked port 22 with ufw, but I still have root access with sftp. I tried editing /etc/ufw/ufw.conf and set ENABLED=no but even after reboot I still cant connect. Any suggestion ? I also know that port 25566 is opened, can I maybe somehow change ssh to that port ?

Also with putty i get this:

Error

Update: I logged into ssh with port 2226(sftp port) and disabled ufw. I still cant login with port 22

Looks like problem is not in ufw, also looks like no service is running on port 22, any suggestion? Screenshot

so flag
ftp (21) is not sftp (22) – not really an answer to your question, but mistaking those two only complicates understanding of your problem.
Paul avatar
cn flag
Did you change anything in `/etc/ssh/sshd_config`?
MTG avatar
aq flag
MTG
better check out system logs (syslog, message) and grep for sshd related errors.
Score:1
za flag

I missedited sshd_config, after I added this to the config, problem was solved:

  1. Port 22
  2. AddressFamily any
  3. ListenAddress 0.0.0.0
  4. ListenAddress ::
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.