Skip to content

sosyco/alpine_docker_ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

alpine_docker_ssh

Base-example to create a container-playground with ssh and central ssh-key.

To create a central container-adminuser on the docker-host:

ssh-keygen -f containeradmin -t rsa -b 4096 -C containeradmin -N ''
mkdir -p /home/<dockeradmin>/container/ssh/containeradmin
cp containeradmin.pub /home/<dockeradmin>/container/ssh/containeradmin/authorized_keys
chmod 755 -R /home/<dockeradmin>/container/ssh/containeradmin

For an Example look also at: https://github.com/sosyco/alpine-dockerhost

# temporary alpine-linux with ssh-key from host 
# ssh on port 22 of container
# containerip: docker inspect testssh | grep IPAddress
docker run -ti -v /home/<dockeradmin>/container/ssh/containeradmin:/etc/ssh/containeradmin --name testssh -rm alpinebase-ssh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published