MacOS – Password less Login to Remote MikroTik

$ ssh-keygen -m PEM -t rsa -b 4096 -C "AGINK"
$ vi .ssh/config
Host agink
  Hostname 192.168.3.51
  Port 22
  User agink
  IdentityFile ~/.ssh/agink_mikrotik_key
  PubkeyAcceptedKeyTypes +ssh-rsa

$ scp ~/.ssh/agink_mikrotik_key.pub [email protected]:agink_mikrotik_key.pub
[[email protected]] > /user ssh-keys import public-key-file=agink_mikrotik_key.pub user=agink

[[email protected]] > /user ssh-keys print 
Flags: R - RSA, D - DSA 
# USER BITS KEY-OWNER 
0 R agink 4096 AGINK
$ ssh agink
MikroTik RouterOS 6.49 (c) 1999-2021 http://www.mikrotik.com/

[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments

[Tab] Completes the command/word. If the input is ambiguous,
a second [Tab] gives possible options

/ Move up to base level
.. Move up one level
/command Use command at the base level
  _   _   _   _   _  
 / \ / \ / \ / \ / \ 
( A | G | I | N | K )
 \_/ \_/ \_/ \_/ \_/ 

[[email protected]] >