custom ssh server enable aws linux image
2.3K
docker build -t deepaksorthiya/custom-awslinux-ssh-server-2023:latest . ## cache docker build --no-cache -t deepaksorthiya/custom-awslinux-ssh-server-2023:latest . ## no cache
docker run --name custom-awslinux-ssh-server-2023 -it -p 22:22 deepaksorthiya/custom-awslinux-ssh-server-2023: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 "your pub key" >> authorized_keys
ssh -v [email protected]
ssh-keygen -R 127.0.0.1
Content type
Image
Digest
sha256:e708c6962…
Size
156.1 MB
Last updated
about 1 year ago
docker pull deepaksorthiya/custom-awslinux-ssh-server-2023