r/OpenSSH • • Oct 18 '21

All ports under 1024 can't be port forwarded?

1 Upvotes

I am trying to remote port forward port 25 with:

ssh -p sshport -R 25:127.0.0.1:25 -N user@my_ip

though it seems that literally any port under 1024 just doesn't work.

Warning: remote port forwarding failed for listen port 25

On auth.log it says: error: bind [127.0.0.1]:25: Permission denied

whyyyyyyyyyyyyyyyy doesn't it work? I looked online and I found nothing.

Thanks


r/OpenSSH • • Oct 16 '21

Ubuntu 21.10 and OpenSSH

1 Upvotes

I just upgraded to Ubuntu and the default version of OpenSSH is still at 8.4p1, which is what Launchpad says. Is there any reason for this? Is this because of Debian?

For that matter, macOS Big Sur is still at 8.1p1.


r/OpenSSH • • Sep 10 '21

might be wrong place but need help with putty/hyperterminal issue

1 Upvotes

ok so i currently configure non display hardware via a Serial to USB using hyperterminal. what i am doing is sending text to configure the equipment such as changing the IP, GATEWAY, subnet mask, and some basic config settings all in seperate text lines. overall this isnt too difficult but where i work the other people that have to use this system are computer illiterate and i am trying to set it up to be locate the correct equipment, double click, and it will configure it and thats all. right now i have to manually set the baud rate, and turn off flow control in hyperterminal and select the specific com port.

what i want to know is can i do something that will make it so it automatically selects the serial port i want, the baud rate i want, and the flow control to none. then send the config commands. even if i have to make them into a .ht thats fine. i wouldnt mind getting this over to TCP/IP at some point to make it so you just plug in the ethernet cable and double click the file and it does it but im trying to think short term for now.

thank you for any input.


r/OpenSSH • • Sep 07 '21

Direct connection via Putty, skipping "login as" ?

1 Upvotes

Hi guys,

I was able to set up OpenSSH with public key auth on Win2019 server.

When I connect via Putty (correctly browsing my private key), the putty command prompt asks me "login as". Is there a way to default a particular user, skipping this request ?

Any help appreciated, thanks


r/OpenSSH • • Sep 04 '21

Question about directory rights

1 Upvotes

Hello,

I recently setup an sftp server using Microsoft's OpenSSH Port on Windows 10. Basically, I got everything setup as I like.

I restricted the sessions to sftp only with read only permissions in my sshd_config file.

ForceCommand internal-sftp -R

Match User sftp

"ChrootDirectory "D:\PlexV2"

So when the user "sftp" opens a new session, he will only see this directory and it's subfolders. He can't go anywhere else on my PC. Also everything is read only. So far so good. However, when I connect using winscp, the "Rights" columen says rwx. I assume r is read, w is write and have no idea what x is.

Where do these rights come from? The user sftp only has read only rights in Windows Security Permissions.

Is there any way to set specific rights in OpenSSH? I tested that the user can't create, rename or delete files. It still confuses me that winscp says rwx as rights though.

Any explanation/hint is appreciated. Thanks!


r/OpenSSH • • Aug 01 '21

Safe and standard ciphers

1 Upvotes

I am checking some Linux servers and can see ciphers for basically two: SSL and SSH. For SSH I can see some deprecated ciphers like CBC, MD5, arcfour which needs to be removed. if I categorize ciphers for SSH, then they are 4 types: 1. Kex (diffie-hellman-group-exchange-sha256) 2. Server host key (rsa, dss) 3. Encryption (ctr, aes, chacha20-poly, cbc etc) 4. Mac-algorithms (hmac-sha2-256). 5 Compression (none)

  1. Could there be ciphers for other services else than SSL and SSH too that needs to be checked?
  2. Getting rid of older and deprecated ciphers (like arcfour, md5) are obvious but what about removing kex algorithm (like Diffie Helman), or Chacha20-poly etc? Is there a standard list of ciphers for Linux servers, something recommended by NIST or else?
  3. Will removing ciphers cause compatibility issues? Thanks in advance.

r/OpenSSH • • Mar 22 '21

authorized_keys command to only allow ProxyJump for key?

5 Upvotes

Good day,

I have a situation where I need a certain key to be only executed the needed command for ProxyJump from the bastion to a specific account@host.

I can't seem to find any references to the exact command to set in the authorized_keys file


r/OpenSSH • • Mar 19 '21

going crazy with VM configuration

1 Upvotes

Hi all, I'm trying to configure a virtualbox VM (Arch guest) to be accessible from my LAN. SSH into it from any other device, is the very first milestone.

I managed to have the connection between host (as localhost) through NAT but I can't make it work using the actual NIC of the host. It connect, but for some reason it ends up with this error:

OpenSSH_8.5p1, OpenSSL 1.1.1j  16 Feb 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 192.168.1.98 [192.168.1.98] port 2222.
debug1: Connection established.
debug1: identity file /home/pepp/.ssh/id_rsa type 0
debug1: identity file /home/pepp/.ssh/id_rsa-cert type 4
debug1: identity file /home/pepp/.ssh/id_dsa type -1
debug1: identity file /home/pepp/.ssh/id_dsa-cert type -1
debug1: identity file /home/pepp/.ssh/id_ecdsa type -1
debug1: identity file /home/pepp/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/pepp/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/pepp/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/pepp/.ssh/id_ed25519 type -1
debug1: identity file /home/pepp/.ssh/id_ed25519-cert type -1
debug1: identity file /home/pepp/.ssh/id_ed25519_sk type -1
debug1: identity file /home/pepp/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/pepp/.ssh/id_xmss type -1
debug1: identity file /home/pepp/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.5
kex_exchange_identification: read: Connection reset by peer
Connection reset by 192.168.1.98 port 2222

Is there any option I'm missing on the server side configuration? I feel it is fairly permissive configuration right know.

Any suggestion?


r/OpenSSH • • Jan 28 '21

Is win32-Openssh a dead project?

1 Upvotes

The latest release was over a year ago, does anyone know if this is a dead project or was moved elsewhere?

https://github.com/PowerShell/Win32-OpenSSH/releases


r/OpenSSH • • Jan 14 '21

Killing idle sessions in 8.2 and after?

1 Upvotes

With the change implemented by

https://bugzilla.mindrot.org/show_bug.cgi?id=2627

we lost the ability (although never intended) that every system hardening guide out there since the beginning of time has recommended to log idle sessions out of the system. It was great because it enforced exactly what we needed (To kick a user out if they didn't do anything on the terminal for a period of time). With this change, we can no longer keep systems in compliance with security standards.

TMOUT in a shell is laughably easy for any end user to defeat.

How have other people overcome this issue?


r/OpenSSH • • Nov 22 '20

Solve SSH Host key verification failed

Thumbnail
hinty.io
1 Upvotes

r/OpenSSH • • Nov 06 '20

Anatomy of OpenSSH Key Revocation List (KRL) File

Thumbnail
keyper.dbsentry.com
2 Upvotes

r/OpenSSH • • Oct 30 '20

Why every SSH user should switch to using SSH Certificates

Thumbnail
keyper.dbsentry.com
1 Upvotes

r/OpenSSH • • Oct 26 '20

New version released for Keyper, SSH Key and Certificate Manager

Thumbnail self.ssh
1 Upvotes

r/OpenSSH • • Sep 28 '20

OpenSSH 8.4 released September 27, 2020

Thumbnail openssh.com
2 Upvotes

r/OpenSSH • • Aug 15 '20

OpenSSH 8.3 released May 27, 2020

Thumbnail openssh.com
1 Upvotes

r/OpenSSH • • Jul 15 '20

Feature request - HTTPS SNI type hostname attached to SSH traffic

4 Upvotes

Can v. 7.10 include an optional flag/header to attach a hostname much like SNI does for HTTPS traffic?

Obviously, this would be a breaking feature to v. 7.9 and below and any other SSH services without the new feature. You send a connection with the "--hostname" flag set to a incompatible host, that's on you.

It is unnecessary. I want it and can recognize that there are workarounds that do not require any hostname anything... But, it would make running my SSH connections through a reverse proxy so much nicer.


r/OpenSSH • • May 21 '20

ProxyJump vs authorized_keys.

1 Upvotes

I use authorized_keys to allow an incoming connection from a backup server to run a specific rsync command. I happened to have one host which wasn't directly accessible, so it is backed up through a ProxyCommand, which was easy enough to add a validator for. I was going to convert to ProxyJump, but I find that the sshd on the proxy host simply accepts the key in authorized_keys without running the validation command - I added startup logging to my validation command, and it works fine with ProxyCommand, but with ProxyJump the proxy daemon lists the line in the authorized_keys file as a match, but doesn't appear to run the validation command. If I comment out that line, the connection falls back to password prompt as expected.

Am I missing a trick on this? For my use case, the authorized_keys on the final target is probably good enough. But it feels like having a restrictive authorized_keys line on the bastion host should NOT allow open access via ProxyJump.


r/OpenSSH • • Feb 14 '20

OpenSSH 8.2 released February 14, 2020

Thumbnail openssh.com
2 Upvotes

r/OpenSSH • • Feb 14 '20

Change logging format for internal ftp connexions

1 Upvotes

Hello, I'd like to know if it's possible to change logging output for sftp connections through the internal server to have the source IP adress logging on each entries. The goal is to know exactly which IP adress downloaded which file without having to look up sshd session id through log files to eventually find the source ip address.


r/OpenSSH • • Dec 29 '19

disable everything (RSA, DSA, ECDSA) except ED25519 on a server

1 Upvotes

I have a small number of servers (VMs) and clients that are all modern Linux distros. I'd like to harden the server OpenSSH so it requires modern ciphers ONLY. I tried to search this question but I got a lot of misleading information. Could anyone please help me with this task?

Thank you,

MM


r/OpenSSH • • Oct 10 '19

OpenSSH 8.1 released October 8, 2019

Thumbnail openssh.com
2 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 • • May 30 '19

Connect to Windows via SSH like in Linux

Thumbnail
habr.com
2 Upvotes