Skip to main content

All Questions

Tagged with
0 votes
0 answers
32 views

SSH login with Google Authenticator in Docker container - one time passwords aren't accepted

I'm currently trying to create a docker container that acts as an ssh server. The login should be handled by the Google Authenticator (GA) PAM module, which implements time bases one time password ...
user3792852's user avatar
0 votes
2 answers
55 views

Forward port 2222 to docker but not forward 22

My setup is Linux host with SSH and SFTP access. It runs inside a docker container exposing also SSH and SFTP. The docker container does not have a separate network. Uses “host” network setting. I ...
NN_'s user avatar
  • 101
0 votes
1 answer
124 views

Safe dockerfile for SSH server, server keys permission

I'm trying to design an SSH server in docker, so I can wire it up with other containers like snort and fail2ban to run before the ssh connection. I'm trying to make it as safe as possible. It's known ...
aaa's user avatar
  • 1
0 votes
1 answer
63 views

How to run `docker exec` with ssh command

Not a fun one - #!/usr/bin/env bash ssh -i 'my.pem' "ubuntu@${addr}" "docker exec -ti '$name' bash" I get this lame error: the input device is not a TTY with no context at all. ...
Alexander Mills's user avatar
0 votes
1 answer
286 views

Setting up a SSH Lab using docker on my local machine

I am using docker ubuntu container to set up an SSH lab on my local machine. I have interactively started the container and installed open ssh on it with other tools. I ensured that I port forward ...
sourabh dhingra's user avatar
0 votes
0 answers
451 views

Run a docker container in a new interactive terminal with sshpass!

I'm trying to run a Docker container in a new interactive terminal with sshpass. I've found that: gnome-terminal --tab -- sh -c \ "sshpass -p "password" ssh name@ip -t 'bash -ic docker ...
PiEmmeC's user avatar
1 vote
1 answer
633 views

Excessive SFTP CPU usage with chroot enabled when using the official Docker repository

I have a fairly niche problem involving Docker, Fedora 37, and a 500M+ pull SFTP image, atmoz/sftp. I installed Docker from the official repository, instead of Fedora's, and when I try to log into the ...
Daniel Szabo's user avatar
-1 votes
1 answer
146 views

how to enable ssh from container to Linux remote machine

we try to perform ssh / scp from docker container to remote LINUX redhat machine ssh remote_server echo $? 255 ssh -vvv remote_server OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017 debug1: Reading ...
yael's user avatar
  • 13.9k
3 votes
1 answer
1k views

SSH connect to a docker container directly, without ssh the host first

On my local computer, I connect with ssh to a distant VPS: ssh [email protected]. In this VPS, a docker container is running (for example docker pull nvidia/cuda:11.4.0-devel-ubuntu18.04 and docker run -...
Basj's user avatar
  • 2,651
1 vote
1 answer
212 views

startx inconsistent behavior

I have a SSH server that is responsible for running dwm binary through X forwarding, on my client computer, i have a shell script that replaces the dwm binary on /usr/local/bin, inside that script, i ...
henriquehbr's user avatar
2 votes
1 answer
909 views

SSH server refuses multiple connections from same client

I have a simple openssh server running in a Alpine Linux 3.15 Docker container, and a another container, also running the same version of Alpine of the SSH server) that runs a X server with dwm I'm ...
henriquehbr's user avatar
3 votes
0 answers
164 views

Parallel SSH to 500 docker containers stalls: ksoftirqd to blame?

Answering How to SSH to over 2000 nodes? I discovered the following: Running 500 parallel ssh to 500 servers is no problem if either: the servers are not on the same LAN (i.e. they are routed through ...
Ole Tange's user avatar
  • 37.1k
1 vote
1 answer
5k views

can't SSH from docker container to remote server

on my host server I have my user with generated private and public keys. I have copied public key value to my remote server authorized_keys file. I have mapped new docker container instance to use the ...
AndreyS's user avatar
  • 278
0 votes
1 answer
3k views

SSH error: Cannot bind any address when using any other user than root in a container with Alpine Linux

I want to be able to start a Docker container as a user other than root and be able to ssh into it. When I start sshd as root I am able to log into it. When I switch it to start the container as ...
ErnieAndBert's user avatar
1 vote
0 answers
264 views

Why do I have to always run ssh-add when using buildx --mount=type=ssh

docker help wanted docker build --mount=type=ssh is only working for me after I do ssh-add on my host machine Is it because I have something miss configured? here are the outputs of running and image ...
grodes's user avatar
  • 11

15 30 50 per page