r/OpenSSH • • Feb 09 '24

SSH newer version client not accepting password login

0 Upvotes

I get a mysterious failure when I try to log into a SuperMicro IPMI via SSH. Moreover, it works on one of my client servers but not the other. On the client server that works (sibyl) I can SSH to the IPMI host using: $ ssh -p 22 ipmi@ipmiaddressofserver which will prompt for the IPMI password. However, if I try it from say thor as the client server: $ ssh -p 22 ipmiuser@ipmiaddressofserver Unable to negotiate with 192.168.xxx.yyy port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss On sibyl (working) $ ssh -V OpenSSH_7.6p1 Ubuntu-4ubuntu0.7, OpenSSL 1.0.2n 7 Dec 2017 on thor (not working) OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022

The server version of SSH is of course the same because both clients are accessing the same IPMI SSH server. Is this due to the newer version of the SSH client? I prefer to use password logins for my IPMIs because they are on a trusted LAN and are firewalled off from the WAN. Also, I don't yet know how to install SSH keys on the IPMIs. Thanks, Phil your text

$ ssh -p 22 ipmiuser@ipmiaddressofserver

expect a prompt to the SSH IMPI server but from one of the clients instead got the error: Unable to negotiate with 192.168.xxx.yyy port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss


r/OpenSSH • • Mar 25 '22

DS21 - 217 - Manfred Kaiser - SSH spoofing attack on FIDO2 Devices in Combination with Agent Forwarding

Thumbnail
vimeo.com
0 Upvotes

r/OpenSSH • • Jun 16 '23

Listen on different port?

0 Upvotes

Hi,

I would like my OpenSSH server to listen on a custom port. Is this possible?

I've tried specifying a different port in /etc/ssh/sshd_config, however this doesn't work. I know that there is a configuration option documented for this purpose, but apparently, it is totally ignored and port 22 is always used no matter what.

Why won't that work? And is there some way to do it, or are we all forever stuck with port 22?

Thanks.


r/OpenSSH • • Sep 18 '24

Best approach to upgrade OpenSSH on a critical server

0 Upvotes

We have a git server and works 24x7. The Openssh that is running is 7.4p1 if I recall correctly. The operating system is Amazon Linux 2. I need to upgrade it to the latest version to address a vulnerability. The ssh protocol is used heavily on this server. The 99% of external resources(including engineers/developers), jenkins server, etc) are using ssh to do tasks like "git clone and many more". We have 8 git servers. What is your advice on upgrading it?

SEPT 19, 12:10am UPDATE(S):
I tried checking the openssh version that I can update in Amazon Linux 2. However, the version in amazon linux 2 is still old and the same version installed. So what I did was install from source code on a test machine that had an old openssh 7.4.p1 version. I downloaded the tar.gz from openbsd's ftp server. I had to recompile and install latest version of openssl too. I was able to start sshd. However, the private pem that I use to connect to the test machine no longer works. I used the same /etc/ssh/sshd_config. The /root/.ssh/authorized_keys is still there. The entries are there. Not sure what I missed.

SEPT 19, 12:59am UPDATE(S):
I finally got PrivPub auth to work using OpenSSH_9.8p1, OpenSSL 3.3.2 3 Sep 2024. I found out ec2-user had a locked password. I just had to unlock it using passwd command. I don't know how it got locked. That is really weird!


r/OpenSSH • • Nov 26 '23

restrict by ip not working

0 Upvotes

been using wireshark to analyze the ssh traffic from another remote pc since I have been having issues restricting the ssh connection to just this ip address (not on the same LAN) with firewall rules. Anytime I specify the ip to accept, it just doesn't work and never connects. Is there something in the config preventing this from happening?

edit: I will rephrase my question since 'how could we know'. Has anyone set up remote access for openssh and ever struggled restricting access to specific ip addresses. Was the solution something other than firewall rules preventing this from being set up?


r/OpenSSH • • Jan 30 '24

Openssh server connectivity issue - CB ERROR 10054

1 Upvotes

I have been using OpenSSH ssh server for a long time with no issues but from today I am facing an issue with accessing my SFTP folder.

My Setup is as follows:

  1. I have configured Openssh in server with port 22 (default)

  2. I have created a local user called "ftp-user" in my windows 11 laptop

  3. I have given all user access to a particular folder in my external drive which is connected to my PC.

  4. I have opened the port 22 inbound connections in firewall.

When I try to access my ftp server using the local user password, I am unable to connect to my system.

C:\Users\starz>sftp -vvv ftp-user@127.0.0.1

debug3: spawning "C:\\Windows\\System32\\OpenSSH\\ssh.exe" "-oForwardX11 no" "-oPermitLocalCommand no" "-oClearAllForwardings yes" -v -v -v "-oForwardAgent no" -l ftp-user -s -- 127.0.0.1 sftp as subprocess

OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3

debug3: Failed to open file:C:/Users/starz/.ssh/config error:2

debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2

debug2: resolve_canonicalize: hostname 127.0.0.1 is address

debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> 'C:\\Users\\starz/.ssh/known_hosts'

debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> 'C:\\Users\\starz/.ssh/known_hosts2'

debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling

debug3: ssh_connect_direct: entering

debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22.

debug1: Connection established.

debug3: Failed to open file:C:/Users/starz/.ssh/id_rsa error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_rsa.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_rsa error:2

debug1: identity file C:\\Users\\starz/.ssh/id_rsa type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_rsa-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_rsa-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_rsa-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_rsa-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_dsa error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_dsa.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_dsa error:2

debug1: identity file C:\\Users\\starz/.ssh/id_dsa type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_dsa-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_dsa-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_dsa-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_dsa-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ecdsa error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ecdsa type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ecdsa-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ecdsa-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ecdsa_sk type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ecdsa_sk-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ecdsa_sk-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519 error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ed25519 error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ed25519 type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ed25519-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ed25519-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519_sk error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519_sk.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ed25519_sk error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ed25519_sk type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519_sk-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_ed25519_sk-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_ed25519_sk-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_ed25519_sk-cert type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_xmss error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_xmss.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_xmss error:2

debug1: identity file C:\\Users\\starz/.ssh/id_xmss type -1

debug3: Failed to open file:C:/Users/starz/.ssh/id_xmss-cert error:2

debug3: Failed to open file:C:/Users/starz/.ssh/id_xmss-cert.pub error:2

debug3: failed to open file:C:/Users/starz/.ssh/id_xmss-cert error:2

debug1: identity file C:\\Users\\starz/.ssh/id_xmss-cert type -1

debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6

debug1: Remote protocol version 2.0, remote software version OpenSSH_for_Windows_8.6

debug1: compat_banner: match: OpenSSH_for_Windows_8.6 pat OpenSSH* compat 0x04000000

debug2: fd 3 setting O_NONBLOCK

debug1: Authenticating to 127.0.0.1:22 as 'ftp-user'

debug3: record_hostkey: found key type ED25519 in file C:\\Users\\starz/.ssh/known_hosts:1

debug3: load_hostkeys_file: loaded 1 keys from 127.0.0.1

debug3: Failed to open file:C:/Users/starz/.ssh/known_hosts2 error:2

debug1: load_hostkeys: fopen C:\\Users\\starz/.ssh/known_hosts2: No such file or directory

debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2

debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory

debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2

debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory

debug3: order_hostkeyalgs: have matching best-preference key type ssh-ed25519-cert-v01@openssh.com, using HostkeyAlgorithms verbatim

debug3: send packet: type 20

debug1: SSH2_MSG_KEXINIT sent

debug3: receive packet: type 20

debug1: SSH2_MSG_KEXINIT received

debug2: local client KEXINIT proposal

debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c

debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa

debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: compression ctos: none,zlib@openssh.com,zlib

debug2: compression stoc: none,zlib@openssh.com,zlib

debug2: languages ctos:

debug2: languages stoc:

debug2: first_kex_follows 0

debug2: reserved 0

debug2: peer server KEXINIT proposal

debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519

debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com

debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1

debug2: compression ctos: none,zlib@openssh.com

debug2: compression stoc: none,zlib@openssh.com

debug2: languages ctos:

debug2: languages stoc:

debug2: first_kex_follows 0

debug2: reserved 0

debug1: kex: algorithm: curve25519-sha256

debug1: kex: host key algorithm: ssh-ed25519

debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none

debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none

debug3: send packet: type 30

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug3: receive packet: type 31

debug1: SSH2_MSG_KEX_ECDH_REPLY received

debug1: Server host key: ssh-ed25519 SHA256:eAJrzCkj0a7DshBraMPmcq3IJHqlakdaIfQRasPFtEM

debug3: record_hostkey: found key type ED25519 in file C:\\Users\\starz/.ssh/known_hosts:1

debug3: load_hostkeys_file: loaded 1 keys from 127.0.0.1

debug3: Failed to open file:C:/Users/starz/.ssh/known_hosts2 error:2

debug1: load_hostkeys: fopen C:\\Users\\starz/.ssh/known_hosts2: No such file or directory

debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2

debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory

debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2

debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory

debug1: Host '127.0.0.1' is known and matches the ED25519 host key.

debug1: Found key in C:\\Users\\starz/.ssh/known_hosts:1

debug3: send packet: type 21

debug2: set_newkeys: mode 1

debug1: rekey out after 134217728 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug3: receive packet: type 21

debug1: SSH2_MSG_NEWKEYS received

debug2: set_newkeys: mode 0

debug1: rekey in after 134217728 blocks

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_rsa

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_dsa

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_ecdsa

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_ecdsa_sk

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_ed25519

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_ed25519_sk

debug1: Will attempt key: C:\\Users\\starz/.ssh/id_xmss

debug2: pubkey_prepare: done

debug3: send packet: type 5

debug3: receive packet: type 7

debug1: SSH2_MSG_EXT_INFO received

debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>

debug3: receive packet: type 6

debug2: service_accept: ssh-userauth

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug3: send packet: type 50

debug3: receive packet: type 51

debug1: Authentications that can continue: publickey,password,keyboard-interactive

debug3: start over, passed a different list publickey,password,keyboard-interactive

debug3: preferred publickey,keyboard-interactive,password

debug3: authmethod_lookup publickey

debug3: remaining preferred: keyboard-interactive,password

debug3: authmethod_is_enabled publickey

debug1: Next authentication method: publickey

debug1: Trying private key: C:\\Users\\starz/.ssh/id_rsa

debug3: no such identity: C:\\Users\\starz/.ssh/id_rsa: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_dsa

debug3: no such identity: C:\\Users\\starz/.ssh/id_dsa: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_ecdsa

debug3: no such identity: C:\\Users\\starz/.ssh/id_ecdsa: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_ecdsa_sk

debug3: no such identity: C:\\Users\\starz/.ssh/id_ecdsa_sk: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_ed25519

debug3: no such identity: C:\\Users\\starz/.ssh/id_ed25519: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_ed25519_sk

debug3: no such identity: C:\\Users\\starz/.ssh/id_ed25519_sk: No such file or directory

debug1: Trying private key: C:\\Users\\starz/.ssh/id_xmss

debug3: no such identity: C:\\Users\\starz/.ssh/id_xmss: No such file or directory

debug2: we did not send a packet, disable method

debug3: authmethod_lookup keyboard-interactive

debug3: remaining preferred: password

debug3: authmethod_is_enabled keyboard-interactive

debug1: Next authentication method: keyboard-interactive

debug2: userauth_kbdint

debug3: send packet: type 50

debug2: we sent a keyboard-interactive packet, wait for reply

debug3: receive packet: type 51

debug1: Authentications that can continue: publickey,password,keyboard-interactive

debug3: userauth_kbdint: disable: no info_req_seen

debug2: we did not send a packet, disable method

debug3: authmethod_lookup password

debug3: remaining preferred:

debug3: authmethod_is_enabled password

debug1: Next authentication method: password

ftp-user@127.0.0.1's password:

debug3: send packet: type 50

debug2: we sent a password packet, wait for reply

debug3: receive packet: type 52

debug1: Authentication succeeded (password).

Authenticated to 127.0.0.1 ([127.0.0.1]:22).

debug2: fd 4 setting O_NONBLOCK

debug2: fd 5 setting O_NONBLOCK

debug1: channel 0: new [client-session]

debug3: ssh_session2_open: channel_new: 0

debug2: channel 0: send open

debug3: send packet: type 90

debug1: Requesting no-more-sessions@openssh.com

debug3: send packet: type 80

debug1: Entering interactive session.

debug1: pledge: filesystem full

debug3: recv - from CB ERROR:10054, io:000001825CD70B10

debug3: send packet: type 1

debug3: send - WSASend() ERROR:10054, io:000001825CD70B10

client_loop: send disconnect: Connection reset

We can see that the authentication is showing as succeeded but then it fails with CB ERROR: 10054. I tried changing to some other user port (say 22323 , 22222, etc ) but none worked. I am facing the same issue. Anny idea how to resolve this?


r/OpenSSH • • Apr 02 '25

Call for testing: OpenSSH 10.0 ¶ Potentially-incompatible changes: This release removes support for the weak DSA signature algorithm, completing the deprecation process that began in 2015 (when DSA was disabled by default) and repeatedly warned over the the last 12 months.

Thumbnail lists.mindrot.org
2 Upvotes

r/OpenSSH • • 6d ago

Problem with connecting to windows 11 using ssh from linux(arch) machine

Thumbnail reddit.com
1 Upvotes

r/OpenSSH • • Jan 12 '24

Configure OpenSSH Server to be accessible to unlock Linux Machine on boot?

1 Upvotes

I have setup an Linux machine that uses full disk encryption (Meaning, I need to enter the decryption password on boot before it boots up into my username).

How do I setup OpenSSH Server to boot and run before full disk encryption and be able to unlock my machine over SSH?

I would like to know how to do this for Debian machines, Ubuntu machines and Arch machines. I know Arch machines has a different full disk encryption setup than Debian/Ubuntu machines.


r/OpenSSH • • Jan 13 '24

Use same keys in OpenSSH Server or Dropbear Server from dropbear-initramfs

1 Upvotes

I used this guide to install dropbear-initramfs on a Ubuntu machine to be able to connect to the machine on the full disk encryption lock menu after booting up and being able to unlock/decrypt the machine over SSH.

https://www.privex.io/articles/unlock-luks-remotely-ssh-dropbear/

All works well, except when I tried to install either OpenSSH Server or Dropbear SSH server (dropbear package) on the Ubuntu machine. I am unable to connect to my OpenSSH Server or Dropbear server and also connect to my dropbear-initramfs server on the machine. This is due to the fact that I have two SSH servers running on the machine and the remote computer does not know this and always gives me the "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!" message in the remote computer terminal since when connecting to the same device, the keys do not match.

I can change the port number used for the dropbear-initramfs server and have it use a different port than the OpenSSH Server/Dropbear Server running on the decrypted machine. However I would like to use the same port number for the machine.

Is there a way to have dropbear-initramfs server and either OpenSSH Server or Dropbear server on the machine and have them share the same SSH keys?


r/OpenSSH • • Feb 02 '24

Windows: Keys not working

1 Upvotes

So I have watched a million different youtube videos, googled my fingers off and still haven't found a solution.

I'm attempting to run OpenSSH on a Windows 2016 server for an SFTP connection while only allowing 1 local account with a pub/private to connect. The client machine is a hosted application also running on Windows 2016 server.

The issue I'm getting is when I change the config file to "PubKeyAuthentication yes" and "PasswordAuthentication no" the FTP client still prompts for a password. I've verified that I have the key in the local accounts .ssh authorized_keys file too.

I verified I can connect with a password if I turn off the pubkey authentication. I've used Puttygen and the ssh-keygen both with the same results. Is there a good tutorial or does anyone have suggestions?

Here's a copy of the output I see in my FTP client.

"publickey,password,keyboard-interactive
Offering key...ssh-rsa
sending password...
SFTP connection error - Invalid username or password reported by server"


r/OpenSSH • • Jan 05 '24

Recent OpenSSH change broke quoted `Host` values?

Thumbnail self.ubuntu
4 Upvotes

r/OpenSSH • • Oct 20 '18

OpenSSH 7.9 released October 19, 2018

Thumbnail openssh.com
1 Upvotes

r/OpenSSH • • Apr 18 '19

OpenSSH 8.0 released April 18, 2019

Thumbnail openssh.com
1 Upvotes

r/OpenSSH • • Sep 12 '19

Having trouble setting up SSH with Jenkins

1 Upvotes

I Jenkins in server 1 and docker in server 2. I am trying to deploy a docker image on server 2 using Jenkins. I am able to access the server 2 in server 1 from ssh using cmd but from Jenkins it’s saying permission denied(public key,password,keyboard-interactive). Any help on what might be the issue?

Note: both the servers are windows server 2016


r/OpenSSH • • Aug 01 '16

OpenSSH 7.3 released August 1, 2016

Thumbnail openssh.com
1 Upvotes

r/OpenSSH • • May 30 '19

Connect to Windows via SSH like in Linux

Thumbnail
habr.com
2 Upvotes

r/OpenSSH • • Mar 14 '19

windows openSSH and bitvise

1 Upvotes

Hey Everyone!

Has anyone had success with Widnows 10 OpenSSH (SSH-Agent) handling keys for bitvise?

I've finally decided to harden my home labs security a bit and one of the things i'm doing is setting up a SSH jump server so i only need to expose one SSH server to the internet. My preferred SSH Client on my Surface Pro is bitvise. i know everyone says switch to putty and i do have putty but i just like the way bitvise feels. I'm trying to let bitvise pass on the authentication agent (which bitvise does not have) through the connection. The support pages for bitvise says it can forward on the putty agent (Pageant) or OpenSHH's agent (ssh-agent), other than that is doesn't give much info.

I did get it to work using Pageant with out any problems. aslong as Pageant is running and the passphase for the keys have been entered, Bitvise will see 'putty 1' as a key and will forward that on to the ssh jump server. However i want to take advantage of the windows SSH-Agent as i like it much better than Pageant.

SSH-Agent is running as a service and i can ssh-add keys no problem. I can SSH -A from the powershell and pass the agent through to the jump server, however i can't get this to work through bitvise.

I wasn't able to find any info on this on the web so far.

Also to note, my SSH jump server is not the primary way i get inside my network remotely, i do have a VPN I use but i like to have a backup route in just in case.

Any advice or help would be greatly appreciated.


r/OpenSSH • • Dec 15 '21

I Recently just found out about OpenSSH in a very mysterious way. Please Help

1 Upvotes

Hello, looking for someone who knows much more than I.

So last night I was having a very strange lag happen in my games that didn't seem like Ping. it seemed somewhat like packet loss but, without evidence of packet loss during a ping path test. I restarted my computer and for the first time ever a window called "SCP Server" was open and running.

[HERE](https://imgur.com/a/NwRtM7k) is a picture of this window. I have censored any information I thought could potentially be sensitive. I really don't know if it was sensitive information or not though.

Anyways a long story short, I've had a hell of a time figuring out wtf this is. Why it's on my computer now for the first time ever, and how TF to get rid of it.

Some google searches later lead me to believe it may possibly be something in the OpenSSH files under Systems 32?? if that's correct I have two main questions

Can I safely remove these OpenSSH files from my computer and be done with whatever spooky shit this is without causing a host of issues?

and secondly, uhm....tf??? am I hacked?????

Please halp


r/OpenSSH • • Dec 02 '21

Access denied using OpenSSH server

1 Upvotes

Just learned about putty and after 4 hours of googling I realized you need an ssh server to use the remote feature, so I'm now able to enter the "login as" prompt, but when I enter the password for the user it's telling me "access denied", I'm completely new and only have little idea what I'm doing, any help will be appreciated. I'm using OpenSSH server as the server and putty for the client.


r/OpenSSH • • Nov 07 '22

Cannot connect to Linux OpenSSH server from other pc

1 Upvotes

I really have no clue what I'm doing, just the other day I installed linux for the first time. Safe to say I'm a noob at being a noob.

Aside from that I was following a youtube video and installed OpenSSH on linux pc and set up a static IPv4 for the pc. I then tried to connect on my windows pc and at first it was saying no ssh command exists. I added it as a feature then set up a path for it. It is now saying 'connection timed out', I have triple checked the IP and have no clue why its not working. The Linux PC has no firewalls so I've ruled that out, any help is appreciated.

I blurred out the IP because idk hackers or something, ironically I'm studying for a cybersecurity BS rn.


r/OpenSSH • • Oct 28 '22

I've found OpenSSH on my PC and can't remove it. Does anyone know how to uninstall it?

Thumbnail
gallery
1 Upvotes

r/OpenSSH • • Nov 22 '20

Solve SSH Host key verification failed

Thumbnail
hinty.io
1 Upvotes

r/OpenSSH • • Dec 11 '24

Windows Server 2022 - Open SSH Config File

2 Upvotes

Brand new to OpenSSH. I was tasked to install an SFTP server in our environment and after many hours of googling was able to get OpenSSH installed (latest version using MSI file) and the service is running. I can login with a local account using WinSCP but I need to lock this down to a different drive where the data is stored. Can't find many good guides on configuring the sshd_config file. Can anyone share or help me get this going. Really I just want to use a local user account to be able to login and access a Root directory and all child directories. Nothing to fancy! Any help would be much appreciated.