Question

Can connect with SFTP but not SSH

Posted August 11, 2020 550 views
Linux Basics

Ubuntu 20.04 LTS

I’m trying to connect my computer to my droplet via SSH but not able to

OpenSSH is set up, I’m able to connect via SFTP (FileZilla) just fine, I’ve added my public key to the authorized key file directly on the DO console, and am now trying to connect via terminal log in.

Here is the sshd_config file from terminal and DO console all have PermitRootLogIn and Password Authentification set to yes

I tried restarting sshd from terminal and DO console using “sudo systemctl restart sshd” and got the following errors

terminal
“System has not been booted with systemd as init system (PID 1). Can’t operate.
Failed to connect to bus: Host is down”

debug
“sudo sshd -vvf /etc/ssh/sshdconfig
unknown option – v
OpenSSH
8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020
usage: sshd [-46DdeiqTt] [-C connection_spec] [-c hostcertfile]
[-E log_file] [-f config_file] [-g logingracetime]
[-h hostkeyfile] [-o option] [-p port] [-u len]”

DO console
“Job for ssh.service failed because the control process exited with error code.”

systemctl status ssh.service
Active: failed (Result: exit-code)
Process: (code = exited, status = 255)

Failed to start OpenBSD Secure Shell serv

(sidenote: anyone have advice on how to copy from the DO console?)

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

ssh is installed and running. this is the error i get when trying to ssh into my server

“ssh: connect to host 178.128.82.156 port 22: Connection refused”

Submit an Answer