Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinovyatkin/c8c46b32cdf146c942791ec29c600741 to your computer and use it in GitHub Desktop.
Save tinovyatkin/c8c46b32cdf146c942791ec29c600741 to your computer and use it in GitHub Desktop.
OpenSSH Update Script - Amazon Linux 2
#!/bin/bash
sudo yum install gcc -y
sudo yum install openssl-devel -y
sudo yum install zlib-devel -y
sudo yum install mlocate -y
sudo yum install autoconf -y
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz
tar zxvf openssh-9.1p1.tar.gz
cd openssh-9.1p1
./configure --prefix=/usr
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment