SSH server enable AWS Linux 2023 image
2.3K
docker build --progress=plain -t deepaksorthiya/awslinux-2023-with-ssh-server:latest .
docker build --progress=plain --no-cache -t deepaksorthiya/awslinux-2023-with-ssh-server:latest .
docker run --name awslinux-2023-with-ssh-server -it -p 22:22 deepaksorthiya/awslinux-2023-with-ssh-server:latest
dnf install sudo -y
sudo dnf install unzip -y && sudo dnf install tar -y && sudo dnf install findutils.x86_64 -y && sudo yum install which -y && sudo yum install iproute -y
/usr/sbin/sshd -D
sudo ss -tulpn | grep LISTEN
copy your host ssh public key from ~/.ssh/id_rsa.pub
cd ~/.ssh touch authorized_keys add content of id_rsa.pub to authorized_keys
echo "" >> authorized_keys
ssh -v [email protected]
#if error :: REMOTE HOST IDENTIFICATION HAS CHANGED try below first ssh-keygen -R 127.0.0.1
Content type
Image
Digest
sha256:2c7d74959…
Size
163.3 MB
Last updated
about 1 year ago
docker pull deepaksorthiya/awslinux-2023-with-ssh-server