Thursday, October 26, 2023

SSH error no matching host key type found

Have you ever encountered difficulties accessing the SSH service from your Linux operating system to a PaloAlto Network device (Next Generation Firewall) with an error message similar to the following ? :

Unable to negotiate with 17.XX.XX.X.5 port 22: no matching host key type found. Their offer: ssh-rsa

 

This issue can be easily resolved by adding the appropriate host key algorithms parameter to the SSH client configuration as follows:

$ sudo echo "HostKeyAlgorithms +ssh-rsa" >>  ~/.ssh/config

After adding the above configuration, please try accessing the SSH service again

Barakallahu fiikum.

Monday, October 23, 2023

Installing Mikrotik on VPS or Cloud Hosting.

  ﷽

 

Are you looking to install MikroTik ROS on a VPS or Cloud hosting? If so, this is the easiest method to give it a try. I have personally used this approach numerous times since 2018.

1. Create new instance VM ( i prefrer Debian or Ubuntu ) then boot on it.

2. Check disk and partition, and take note of active partition :

$ lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 98.1G  0 disk
├─sda1   8:1    0   90G  0 part /
├─sda2   8:2    0    1K  0 part
└─sda5   8:5    0  8.1G  0 part [SWAP]


3. Mount tempfs to /tmp :

mount -t tmpfs tmpfs /tmp/

4. Download RAW image from https://www.mikrotik.com/download :

cd /tmp
wget https://download.mikrotik.com/routeros/7.11.2/chr-7.11.2.img.zip


5. Extract image and flash it to disk :

gunzip -c chr-7.11.2.img.zip > chr.img
dd if=chr.img of=/dev/sda bs=4M oflag=sync


6. Enables the Magic SysRq key then Reboot :

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger


System will reboot and boot up Mikrotik Router OS.

Baarakallahu fiikum.

 

40 Hadist Seputar Keluarga Samawa (Bagian 3)

 ﷽ Ustadz Yusuf Abu Ubaidah As-Sidawi hafizahullohuta'ala Masjid Al-Aziz  Jl. Soekarno Hatta No. 662 Bandung Hadist 11 : Doa Orangtua Bu...