sftp icon indicating copy to clipboard operation
sftp copied to clipboard

Cibbectuib ckised with No such file or directory

Open kevinimbrechts opened this issue 5 years ago • 1 comments

Hi !

When I try to connect with PuTTY or MobaXterm, I get this error :

/dev/pts/0: No such file or directory
open /dev/tty failed - could not set controlling tty: No such file or directory

When I try with WinSCP, I have these logs : Changed root directory to "/home/myuser"

' for myuser from 172.18.0.1 port 35588 id 0'internal-sftp
Close session: user myuser from 172.18.0.1 port 35588 id 0

Here is a part of my docker-compose file :

    volumes:
      - ./sshd_config:/etc/ssh/sshd_config
      - myusersftp:/home/myuser/
      - /etc/docker-ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
      - /etc/docker-ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
    command: myuser:$$1$$blablabla$$lablablablablablablablabla:e:::upload

I don't understand why :(

kevinimbrechts avatar Jun 12 '19 15:06 kevinimbrechts

I starting experiencing this issue today.

tried logging in and got /dev/pts/0: No such file or directory open /dev/tty failed - could not set controlling tty: No such file or directory

The only difference I can think of is that I am using AlmaLinux instead of CentOS as my docker host.

I tested the latest alpine variant as well as the 3.7 version

kale1d0code avatar Sep 20 '23 13:09 kale1d0code