Logging IP's of successful SSH logins? Is it possible?

Currently reading
Logging IP's of successful SSH logins? Is it possible?

2
0
Operating system
  1. Linux
  2. macOS
Mobile operating system
  1. iOS
Hello, I see I can find the IP addresses of UNsuccessful logins at. /var/log/auth.log but when a successful login happens it does not record the IP address.



Is there another way I can find the IP address of SUCCESSUFL SSH logins?



Thanks!!!
 
Ah yes... this looks good! I did not know about log center! THANK YOU!

One unrelated question maybe you know about... I want to have different white-list or black list for SSH traffic than for SFTP traffic with the firewall... do you know if this is possible?

Since I am off topic now... I can post another question on this :)
 
You can use different TCP ports for SSH and SFTP .... I do this so that SSH is not exposed the the Internet. Set them here:

SFTP ... Control Panel -> File Services -> FTP
SSH ... Control Panel -> Terminal & SNMP -> Terminal

Apply firewall rule per TCP port/service. Also port forwarding can be to whichever service you want.
 
SFTP ... Control Panel -> File Services -> FTP
SSH ... Control Panel -> Terminal & SNMP -> Terminal
Can't overstate this. If you haven't run Security Advisor, so periodically with all features selected:

0h4LQKR.png
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
Synology answered my ticket, will be fixed in DSM 7.2.1.
Replies
3
Views
1,670
Good to know my friend, very useful thanks a lot
Replies
12
Views
771
  • Question
New to all this command line stuff and struggling with some basic things but slowly learning. I thought...
Replies
0
Views
1,434
  • Question
Thanks for your help, appreciate it. Definitely helped to reset the time manually in SSH session, then the...
Replies
5
Views
2,887
For others stumbling across this thread, an alternative to Tip 11, is to (via SSH) reenable the default...
Replies
3
Views
5,180

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top