New answers tagged

1 vote

How do I connect to ssh with a different public key?

The questioner specifically asked about how they would connect to two different groups of servers using two different public keys, yet the answers see at the time of writing this appear to me to be ...
Programster's user avatar
0 votes

AWS EC2 ssh: connect to host, port 22: Operation timed out, nothing has changed?

This is based on experience. And this is for Apple Mac Silicon (terminal) users, I cannot speak for other OS. If you have a .pem file, go to the directory of your pem file and do this: chmod 0400 ...
boyfriendnibluefairy's user avatar
1 vote

Terminal emulator - make remote ssh sessions persistent

Short Answer: YES... but it depends on what you understand on long term and uninterrupted. Using additional Software Using the mosh-shell which is part from mosh-server. Using a compatible SSH client, ...
djdomi's user avatar
  • 1,913
0 votes

Terminal emulator - make remote ssh sessions persistent

I might not have properly understood your requirements, but are you already aware of abduco(1) and dtach(1)? abduco provides a way to disconnect a given application from its controlling terminal, ...
Alexis's user avatar
  • 101
0 votes
Accepted

Unable to ssh using ed22519, although both client and server support it

Per @dave_thompson_085 's comment, the issue was with a misconfiguration of the client: PubkeyAcceptedKeyTypes ssh-rsa was preventing it from using ed25519
Rulasmur's user avatar
0 votes

Terminal emulator - make remote ssh sessions persistent

Short answer: No. While you could spend a lot of time addressing elements of the problem, you're not going to get something which works the way you want. If your local terminal supports scripting (the ...
symcbean's user avatar
  • 22.2k
1 vote

(KVM) virt-manager stuck in password prompt after open VM

I'm still looking for a solution to allow opening a guest virtual spice console from within ssh connected Virt-Manager. For security, I refuse to let Spice listen on anything but localhost. Also I am ...
Shawn Hughes's user avatar
0 votes

SSH Hangs after being logged in for ~30 seconds

TL;DR: Check if there is another way the packages can flow from your client to server and vice versa, also known as asymmetric routing I had the same issue, but resolved it differently. MTU was ...
mhk's user avatar
  • 1
0 votes
Accepted

How to Reset Unifi APs over SSH?

After searching for some time i found this article which had an expanded command on doing it. For those who don´t need the whole explanation, the Command is as follows: syswrapper.sh restore-default &...
Kanauer's user avatar
1 vote
Accepted

SSH executes `Match exec` lines from conditionally excluded includes

I assume that, like in many other configuration file syntaxes, the Include directive and your Include ~/.ssh/inc is not actually 100% conditional, (despite your indentation and the manual ). But ...
HBruijn's user avatar
  • 79.9k
0 votes

Unable to ssh using ed22519, although both client and server support it

Can you try this configuration from mozilla security # Supported HostKey algorithms by order of preference. HostKey /etc/ssh/ssh_host_ed25519_key HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/...
Turdie's user avatar
  • 2,514
1 vote

How to manage several "localhost" entries in ssh/config that only differ by port

A HostKeyAlias should help. Host dev HostName localhost HostKeyAlias localhost-dev Host prod HostName localhost HostKeyAlias localhost-prod
AlexD's user avatar
  • 9,849
1 vote

Is it possible to pipe qemu-img into SSH target?

It's not possible to do that using qemu-img alone (as documented in https://serverfault.com/a/1113484/217241 ), but you can instead use the qemu-nbd (network block device) utility which accompanies ...
TimSmall's user avatar
0 votes

OpenSSH Requires Password AND Public Key!

Im not sure if CentOS 6 supports it, but I would try to set RequiredAuthentications2 publickey in the sshd_config. https://infosec.mozilla.org/guidelines/openssh
Turdie's user avatar
  • 2,514
1 vote

OpenSSH Requires Password AND Public Key!

To be more explicit: you aren't (yet) trying to 'login' at all That error does NOT mean your ssh client is trying to authenticate, commonly described as login, with a publickey. It says no matching ...
dave_thompson_085's user avatar
0 votes

OpenSSH Requires Password AND Public Key!

As @AlexD pointed out: the remote ssh is an old OpenSSH_5.3 and does not have way more secure ciphers being default in OpenSSH_8.9p1. There is a reason why ciphers were dropped, so unless your Centos ...
darked89's user avatar
  • 101
0 votes

Ubuntu 20.04 VMWare EXSI VLAN Remote Connection Lost after Kubeadm install

Are you sure this is reproduceable? Things works fine, you install kubeadm or other k8s related software, then the SSH connection no longer works? output of 'ss -ptuln' will show you if the ssh port ...
ndizz's user avatar
  • 1
1 vote

OpenSSH Requires Password AND Public Key!

The debug shows that all identity files returned errors (type -1) and there is no public key authentication performed. Do you have read permissions to any files in /home/eric/.ssh/? There is also an ...
AlexD's user avatar
  • 9,849
0 votes

Accessing RDS or EC2 instance without '.pem' key

If the database is in RDS and you don't need up to the minute data, you should be able to create a RDS snapshot. Then use that snapshot to restore the database to a new RDS instance. On that new RDS ...
Tim P's user avatar
  • 176
0 votes

Keycloak Integration with a Linux Server

It will not open the keycloak page for user login, they way it works is that it gets password grant token from keycloak based on user credentials. When you run ssh server-name@server-ip , the user ...
Khaliq's user avatar
  • 1
-1 votes

Deleted my Home folder now I cant remotely connect via SSH

Copy all user default files from /etc/skel to user home directory. sudo cp -r /etc/skel/* /home/home_dir Then change the permissions. chown -R username:username home_dir
Shivam Ahuja's user avatar
0 votes

Tips for coping with a surprisingly high rate of "botnet" sshd login failures?

If you expose SSH via public ip, it will get scanned sooner or later, and threat actors will try authentication attempts, no matter the VPS provider or network. I would harden you ssh configuration ...
Turdie's user avatar
  • 2,514
0 votes

Tyring to access MariaDB running in a docker container on a remote machine

I would suggest to use network_mode host in your docker-compose. Because by default docker creates a seperate network which is very difficult to tunnel to. services: db: image: ...
Turdie's user avatar
  • 2,514
1 vote

Tips for coping with a surprisingly high rate of "botnet" sshd login failures?

So, after about five days of this particular VPS being offline (it's a hobby project that I'm working on sporadically anyway), I booted it back up to see if the attackers had given up trying to DDOS ...
Keiji's user avatar
  • 125
0 votes

How does Java handle multiple client keys in the keystore but 1 in trust store when doing mtls

Lots of things but I think the easiest is just post the example https://github.com/jrgleason/spring-boot-mtls This seems to work correctly. To test the fail case change the client alias to something ...
Jackie's user avatar
  • 191
-1 votes

Cloud66 cx command returns exit status 255 / Permission denied (publickey)

I hope you have solved it by now. Writing here for the records: in my case, I had created a specific ssh key that I wanted to use only for this project and no matter what options I was passing to ssh (...
molli's user avatar
  • 99

Top 50 recent answers are included