openssh server remote access
sd tech
sdtc at sonicboom.org
Thu Oct 21 21:13:18 UTC 2021
Invoking ssh -v user at host will usually tell you more about why something
is or isn't working. There are risks with making it internet accessible
to the world. I use fail2ban as a way to reduce impact of ssh brute
force attacks. Recommend using ssh keys only if at all possible.
Here are stats from a machine I have I got by running fail2ban-client
status sshd. I block for much longer than the default.
Status for the jail: sshd
|- Filter
| |- Currently failed: 0
| |- Total failed: 211
| `- File list: /var/log/auth.log
`- Actions
|- Currently banned: 4655
|- Total banned: 4902
Brian
On 10/21/2021 1:51 PM, Colin Law wrote:
> On Thu, 21 Oct 2021 at 21:43, Semih Ozlem <semihozlemlinuxuser at gmail.com> wrote:
>> Hi everyone,
>>
>> I set up an openssh server and I am trying to access that machine remotely (not from the local network. but from another ip address). I get an error (something about port 22).
> What setting needs to be checked and what needs to be done on the
> machine that openssh server is running and on the router that machine
> is connected to, so that openssh server can be accessed remotely?
>
> You need to open port 22 on the router. But I strongly advise not to
> do that until you have done a lot more research into the perils of
> opening your system up to the internet, and how to minimise the
> danger.
>
> Colin
>
More information about the ubuntu-users
mailing list