ssh = send

ssdh = receive (from ubuntu24.04 it’s ssh too)

Check status and port

sudo systemctl status ssh

Restart sshd

systemctl restart sshd

Enable sshd

systemctl enable --now ssh

Coolify Openssh Settings: https://coolify.io/docs/knowledge-base/server/openssh

Send a file from local to remote

# In portainer open terminal and if it's not installed install scp
apt-get update && apt-get -y install openssh-client
# if you get scp error '/usr/local/bin/ssh: No such file or directory', link it.
sudo ln -s /usr/bin/ssh /usr/local/bin/ssh
# go to the directory's parent path and run for last dir:
#**root@container**: 
scp -r DIR_NAME_TO_COPY [email protected]:
# or on the folder
scp FILE_NAME_TO_COPY [email protected]:

# Get the data from the workstation in terminal (**Password**: suleymandeduce)
#**sglbl@DEDUCE-PC**:~$ (or use 192.168.192.173)
scp -r [email protected]:DIR_NAME_TO_COPY localtemp

Change Key Access

  1. Change ownership of the key file to the sglbl user:

    sudo chown sglbl:sglbl /data/coolify/ssh/keys/[email protected]
    
  2. Set correct permissions:

    sudo chmod 600 /data/coolify/ssh/keys/[email protected]
    
  3. Test access as the sglbl user:

    sudo -u sglbl ssh-keygen -l -f /data/coolify/ssh/keys/[email protected]
    
  4. Test SSH connection as the sglbl user:

    sudo -u sglbl ssh -i /data/coolify/ssh/keys/[email protected] [email protected] -p 2222
    

Change Port

1. Change the SSH Port in /etc/ssh/sshd_config