You must put at least 1 valid public key in './files/' before building.
Anything matching ./files/*.pub will be added to /etc/authorized_keys
before sshd starts.
Edit /etc/authorized_keys to modify keys after container is running.
git clone https://github.com/jhazelwo/ssh-docker.gitcp ~/.ssh/id_rsa.pub ./ssh-docker/files/cd ssh-docker; ./Build.sh./Go.sh./files/sshd_config./Go.shrsync -av --progress -e 'ssh -p 22022 -l data -i ~/.ssh/id_rsa' remote.host.tld:*.zip .
rsync -av --progress -e 'ssh -p 22022 -l data -i ~/.ssh/id_rsa' *.zip remote.host.tld:.
ssh -l data -p 22022 -i ~/.ssh/id_rsa remote.host.tld
scp -P 22022 -i ~/.ssh/id_rsa *.zip [email protected]:.
note: Use upper-case P for 'Port' when using scp.
scp -P 22022 -i ~/.ssh/id_rsa [email protected]:*.zip .
note: Use upper-case P for 'Port' when using scp.
# If you put key, user and port in ~/.ssh/config you don't have to
# include them in your commands.
Host remote.host.tld
HostName remote.host.tld
User data
IdentityFile ~/.ssh/remote_host_PRIVATE_key
Port 22022
Content type
Image
Digest
Size
204.1 MB
Last updated
almost 6 years ago
docker pull mfairul/file_transfer_using_scp