Upgrade SSH Di Centos7
Upgrade SSH Di Centos7
1. First you need to install a few dependencies, like development tools or build
essentials and the other required packages :
root@localhost:~ wget -c
https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz
root@localhost:~ cd openssh-9.1p1/
....................................................
...................................................
Host: x86_64-pc-linux-gnu
Compiler: cc
Compiler flags: -g -O2 -pipe -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -
Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-result -
fno-strict-aliasing -D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset -fstack-
protector-strong -fPIE
Preprocessor flags: -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE
Linker flags: -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong -
pie
Libraries: -lcrypto -ldl -lutil -lz -lcrypt -lresolv -lselinux
+for sshd: -lpam
root@localhost:~ make
jika file ssh_config tidak bisa di overwrite maka perlu di rename terlebih dahulu
comand seperti berikut
root@localhost:~ cd /etc/ssh
mv moduli moduli_copy (rename file moduli jika diperlukan)
mv ssh_config ssh_config_copy (rename ssh_config jika diperlukan)
mv sshd_config sshd_config_copy (jika diperlukan)
5. Once you have installed OpenSSH, restart SSH and check the version of OpenSSH
root@localhost:~ systemctl restart sshd.service
root@localhost:~ ssh -V
jika dari putty root tidak bisa diakses, kembalikan sshd_config yang sudah direname
mv sshd_config sshd_config_copy2
mv sshd_config_copy sshd_config