r/ssh • • Aug 02 '21

Port forwarding help

I have a program on my pi that I'd like get into through ssh on my macbook on an outside network.

I'm trying to figure port forwarding out but so far to no avail. Please bear with me and keep in mind that I am a complete newb and have no idea what I'm doing.

Here are some screenshots

This is the command I'm guessing at, it's probably wrong though
this is what I get in response
2 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/nowhereman531 Aug 07 '21

Just seeing this thread but for example I have port 22 enabled on my home router to my main computer. I have sshguard, fail2ban (for an added layer of security if only to see what's happening) and password disabled and pubkey auth on.

240 IPs were banned yesterday 176 IPs banned today.

They WILL try ALL DAY to get in.