SSH

Updated . Posted . Visible to the public.

SSH client side

 ssh-keygen -t rsa -b 4096

ssh-copy-ip user@server

Banner

#no default banner path
#Banner none
Banner /etc/ssh/banner

********************************************************************
*                                                                  *
* This system is for the use of authorized users only.  Usage of   *
* this system may be monitored and recorded by system personnel.   *
*                                                                  *
* Anyone using this system expressly consents to such monitoring   *
* and is advised that if such monitoring reveals possible          *
* evidence of criminal activity, system personnel may provide the  *
* evidence from such monitoring to law enforcement officials.      *
*                                                                  *
********************************************************************

Unauthorized access to this machine is prohibited
Press <Ctrl-D> if you are not an authorized user

SSH VPN

/etc/ssh/sshd_config
PermitTunnel yes
PermitRootLogin yes
#!/bin/bash
sudo ssh -f -w any root@matrix ifconfig tun0 10.5.4.1 netmask 255.255.255.0
sleep 10
sudo ifconfig tun0 10.5.4.2 netmask 255.255.255.0 up

RouterOS

cd .ssh
ftp 192.168.0.13
put ida_dsa.pub
/user ssh-keys import user=admin public-key-file=id_dsa.pub

Corrupt host´s key, regenerating it! Reboot requerid!

/ip ssh regenerate-host-key

SSH UniFi AP

ssh -oHostkeyAlgorithms=+ssh-rsa -oPubkeyAcceptedAlgorithms=+ssh-rsa x.x.x.x
Profile picture of L3UNIX
L3UNIX
Last edit
L3UNIX
Posted by L3UNIX to L3UNIX's deck (2021-01-19 23:22)