New answers tagged

0 votes

connect to host ssh connection timed out

This happened to me. When checking the status of the 'ufw' firewall (to make sure it was off), I noticed an error stating that '/' was owned by a user other than '0'. Looks like the upgrade changed ...
  • 1
0 votes

SSH returns: no matching host key type found. Their offer: ssh-dss

The 'their offer' list of algorithms are the ones that the server will accept so the client needs to offer matching ones. As mentioned one way to fix this is add the missing algorithms to your .ssh/...
  • 2,655
0 votes

Cannot SCP into Oracle VM, SSH is working

i was getting the same thing and in my case updating winscp to the latest version(currently 5.21.3) solved it. SSH Bug: https://winscp.net/tracker/1952
0 votes

Ubuntu 22.04 SSH the RSA key isn't working since upgrading from 20.04

I experienced a similar problem after I upgraded my server from Ubuntu 20.04 to Ubuntu 22.04. My Brother ADS-2400N document scanner suddenly refused to talk to my server via SFTP. It turned out that ...
  • 211
0 votes

stderr: No ECDSA host key is known for github.com and you have requested strict checking

... and you have requested strict checking. You can check the Jenkins/Git-Host-Key-Verification setting under Global Security... Obviously you can workaround it by selecting No verification which is ...
  • 101
0 votes

Fail2Ban, ban all ip except for myself

As for fail2ban blocking everything, you can surely switch the mode of jail (chain or its blocktype) to DROP or REJECT all IPs and unban yourself with http-knocking or port-knocking. Here is an ...
  • 146
0 votes

SSH without password does not work after upgrading from 18.04 to 22.04

Update: I suggest trying the command-line lower down to see if the configuration changes proposed will actually work, that way you'll only be making config changes if you've already checked that they'...
0 votes
Accepted

X11 Forwarding over SSH to use xterm

Based on the output debug1: X11 forwarding requested but DISPLAY not set you should set the DISPLAY variable on the source system before running ssh. The DISPLAY variable on the destination system ...
  • 256
0 votes
Accepted

SFTP connection to Ubuntu 22.04 for an old Cisco application

This fixed in my case: Ciphers +aes128-cbc,aes256-cbc,3des-cbc KexAlgorithms +diffie-hellman-group14-sha1 HostkeyAlgorithms +ssh-rsa # If you authenticate using a keypair: PubkeyAcceptedAlgorithms +...
1 vote

Can't start a gnome session over ssh

You cannot run an entire Gnome Shell desktop over ssh, so it is normal that you do not manage to. Do not continue to try. It won't work and there is no point in doing that.
  • 70.9k
0 votes

ssh connection refused

In some cases I noticed that the ssh process needs to be manually restarted using sudo apt install openssh sudo service ssh start
0 votes

How can'i pass this " openssh-client' has no installation candidate "

You just need to update your repo list and reinstall openssh-client again. $apt-get update $apt-get install openssh-client
1 vote

Fail2Ban, ban all ip except for myself

Don't try to use fail2ban for that. Instead, use the firewall to block all other IPs from the port you are using to connect on. Assuming ufw is set up to deny all already, sudo ufw allow from XXX to ...
0 votes

How to get the X-Servers complete address

First, you never need sudo su, why use 2 programs when one will do? Just run sudo -i. Second, why do you need this at all? If you want to run the program as root, just run sudo programName. Next, this ...
  • 94.4k
1 vote

SSH connection failed after updating to ubuntu 22.04.1

Put the following in your /etc/ssh/ssh_config: PubkeyAcceptedKeyTypes +ssh-rsa HostKeyAlgorithms +ssh-rsa This will allow the SSH client to connect using the deprecated algorithms. Also see here and ...
1 vote
Accepted

execute command on remote machine in bash script using password authentication

The correct syntax is sshpass -p $SSH_PASSWORD ssh -o StrictHostKeyChecking=no $SSH_USER@$SSH_HOST sudo /root/updates-watcher/update.sh
  • 183
1 vote

SSH to a login to Ubuntu Core on Raspberry Pi3 requires password

For someone who might get the same confusion as me: I also followed the tutorial from Ubuntu website, but in the final step, log in via ssh, I was required to enter a password. Load key "/home/...
0 votes
Accepted

Rsync through reverse ssh tunnel

Judging that you are able to ssh into you machine on port 2222, I think you have the remote port (desktop) mixed up with the port (2222). Try the following on you Raspberry Pi: ssh -f -N -T -R 5000:...
  • 20

Top 50 recent answers are included