All Questions
842
questions
0
votes
1
answer
53
views
Will this OpenSSH config provide the best security
Setting up my OpenSSH server on a Windows 10 server to be exposed to the WAN. (Up until now it has just been used on the LAN).
What I am trying to achieve:
When connection is from the internet, only 1 ...
0
votes
0
answers
24
views
How to fix cannot connect to host: dial tcp: lookup ubuntu@####: no such host
I use oracle cloud infrastructure. I was trying to connect thorough ssh and I got this error "cannot connect to host: dial tcp: lookup ubuntu@####: no such host". I have checked everything. ...
5
votes
1
answer
800
views
ssh-keygen fails to read key generated by itself
Using OpenSSH_8.9p1 Ubuntu-3ubuntu0.7 on WSL, ssh-keygen refuses a key it previously generated, outputting error:
do_convert_from_ssh2: parse key: invalid format
Reproduction
$ cd /tmp/...
0
votes
1
answer
70
views
Ubuntu SFTP Server Permissions
I'm trying to create a SFTP server using Ubuntu Server 24.04 LTS, and I'm having trouble copying to the folder I created:
The sshd_config sets ChRootDirectory to \sftpsrv, which is a mounted disk ...
0
votes
0
answers
34
views
Cant ping or ssh ubuntu server locally, server can ping websites
Installed ubuntu server and openssh on old laptop installation went well. Settings good, all firewalls down, ssh active BUT still no machine can ping server n server can ping machines. Tried pinging ...
2
votes
0
answers
44
views
Connection abruptly terminated by remote host when trying to gain ssh access to a windows computer from outside the local network
I have a windows computer and would like to gain ssh access to its powershell from outside my home network. For this purpose, I opened a TCP port on the router and set up automatic forwarding to the ...
0
votes
1
answer
112
views
SSH login to Windows 10 not possible with a admin account
I am trying to establish an SSH connection from a VirtualBox Ubuntu2204 guest to Windows 10 host via ssh using public key. I can do it when I use a non-admin account, but it fails with an admin ...
1
vote
1
answer
184
views
Which ed25519 PEM keys does openssh >9.6 support?
According to the release notes of OpenSSH 9.6 it now supports ED25519 keys in PEM format
ssh(1), sshd(8), ssh-add(1), ssh-keygen(1): add support for reading
ED25519 private keys in PEM PKCS8 ...
0
votes
0
answers
67
views
ssh between two docker containers on different nodes
Hi I am trying to create (preferably passwordless) ssh connection between two docker containers (named master and worker_1) on mulitple nodes and having difficulties.
These are the options I tried so ...
0
votes
1
answer
45
views
How can I configure OpenSSH to forward SFTP-Requests?
I have a two-server setup in which one is only reachable via the other. The corresponding client config looks like this:
Host <actual_host>
User root
ProxyCommand /bin/bash -c "ssh ...
0
votes
2
answers
59
views
sshd Match on the type of pubkey being use by the authenticating user (Match PubkeyAcceptedAlgorithms)
I want to detect what type of ssh pubkey is being used by a user and do a Match Statement on it in sshd_config.
The goal is to prevent using pam if a Secure Key (https://man.openbsd.org/ssh-keygen#...
0
votes
0
answers
93
views
X11 forwarding on SDDM
I am trying to forward X11 from my PC (server) to my laptop (client). I allowed X11 forwarding in my sshd_config. Running ssh user@ip -X returns Warning: untrusted X11 forwarding setup failed: xauth ...
0
votes
0
answers
264
views
Why can’t I connect to an SSH server on Windows?
I'm trying to connect to my PC from my laptop when I'm out of town. First I made sure my VPN was turned off. I live in Egypt and my ISP is WE Egypt (aka: Telecom Egypt).
I set everything up but it's ...
3
votes
1
answer
1k
views
How to properly secure harden SSH in 2024?
Since 1995, SSH, notably OpenSSH server [1999], is one of those essential services like DNS [1985] for admins to manage their IT landscapes.
How do I properly secure harden an OpenSSH server in 2024?
...
0
votes
0
answers
56
views
setting up ssh between two windows machines - permission denied
I am trying to establish ssh connection between two Windows machines. Here are things I did:
I installed OpenSSH on both machines, generated the ssh keys and placed the public key on the host machine ...
0
votes
1
answer
1k
views
Windows Server 2022 openssh sftp change default directory
Windows Server 2022
Installed optional feature OpenSSH Server
With FileZilla I connect to server as MyUser which opens to
/C:/Users/MyUser/
which is the default directory.
But what I want is for the ...
0
votes
1
answer
67
views
Why OpenSSH client is not using my keys on Windows?
I'm on Windows 10, using an OpenSSH client to connect to a Debian server.
All my keys are stored in C:\Users\entityinarray\.ssh\
PS C:\Users\entityinarray> ssh [email protected]
[email protected]:...
0
votes
1
answer
144
views
can anyone explain how user keys are verified (post host key/KEX, and not authorized_keys)? issue with ssh user key verify
Nutshell: Looking for a bit of an ELI5 explaining the protocol and/or implementation (openssh) of [post-KEX] user key verification (who does what) without being in code I don't understand or a too-...
0
votes
1
answer
72
views
How to run `nvm` for Windows through SSH?
I'm on macOS and try to run nvm on a Windows host via OpenSSH. I installed nvm via scoop install nvm on my Windows remote. The environment variables are set and where nvm resolves properly, but trying ...
3
votes
2
answers
1k
views
How to convert OpenSSH ED25519 private key to the OpenSSH format that MySQL Workbench uses?
My OpenSSH ED25519 private key file has the following structure:
-----BEGIN OPENSSH PRIVATE KEY-----
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...
0
votes
1
answer
123
views
Remotely initialize RDP connection through SSH
I'm trying to find a way to remotely start RDP connection through ssh with cmd. It would work like this:
Machine A tells Machine B to connect with RDP to Machine C
I've tried logging into the B with ...
0
votes
1
answer
189
views
SSH: connection to ip closed
I am trying to connect via SSH to my computer: from Powershell, I use ssh user@public_ip and then I insert the password. I have the following response:
Impossibile accedere al file.
Connection to ...
1
vote
0
answers
186
views
Configure SSH to immediately deny all authentication but still listen
I'm trying to configure an SSH server to only allow access for a specific user from a specific IP address. I've configured that with
PubkeyAuthentication no
PasswordAuthentication no
...
0
votes
1
answer
134
views
Trying to ssh into my wireless router from my Raspberry PI - debug1: send_pubkey_test: no mutual signature algorithm
I have an Asus router: RT-AC1300G PLUS
In its settings I set a ssh public key that I generated on my Windows PC using ssh-keygen.
I can connect from my PC without a problem.
I can't however connect to ...
0
votes
1
answer
237
views
ssh login delayed on Debian
When logging in to an up to date Debian 12 (bookworm) server via ssh (to IP address) the login is delayed by ~10 seconds after entering the password (and also when doing ssh login via key).
Here is ...
-1
votes
1
answer
306
views
windows 11 ssh key generated in system32 instead of .ssh
My windows 11 openssh is generating SSH keys under system32 folder instead of .ssh even if .ssh folder exits under my user folder. What might be the problem and how can i change it?
PS C:\Windows\...
0
votes
1
answer
226
views
Automate a menu presented by a remote SSH jump server
I need to connect to a remote host through a jump server, but this server presents me with a menu like
Please make a selection (1 2 ... q)
1. SSH Remote Server
2. Open a local session
q. Exit
From ...
0
votes
1
answer
201
views
How many environment variables can be passed through openssh SendEnv/AcceptEnv
I have added SendEnv whatever_* in ~/.ssh/config on the local host and AcceptEnv LANG LC_* whatever_* in /etc/ssh/sshd_config on the remote host.
Now, I'm trying to run some stuff on the remote ...
0
votes
0
answers
22
views
Unable to login with ssh and .pem certificate to ubuntu server [duplicate]
I reainstalled windows 10 (I imported all ssh files from old windows installation) and I am not able to login to my ubuntu server anymore.
The command I use is this:
ssh.exe -vvv -i my-certificate.pem ...
0
votes
1
answer
81
views
How can I setup 2 VPS can connect without using VPN which those VPS has already setup the ListenAddress to the VPN
I have 2 VPS,
and those 2 VPS are setup OpenVPN, and we only can access it by connect to VPN, then ssh it to VPN gateway itself. I set it up from sshd_config by adding ListenAddress.
here's the ...
0
votes
0
answers
21
views
windows-fido-bridge cmake error
I'm building the windows-fido-bridge here: https://github.com/mgbowen/windows-fido-bridge from source, but running into an error on line cmake -DCMAKE_BUILD_TYPE=Release ... The error reads:
-- ...
0
votes
1
answer
612
views
ssh using private key fails: server accepts key, still getting return packet type 51: access denied (public key)
People in my organization connects to their GitHub repo over ssh key. Recently, some people are getting :permission denied (public key)
The issue is not only with GitHub, they are not able to connect ...
0
votes
0
answers
343
views
Unable to SSH into localhost on MacOS Big Sur (11.7.3) --> kex_exchange_identification: Connection closed by remote host
I am new to learning about SSH configuration on a Mac.
Remote login has been enabled via System Preferences -> Sharing -> Remote Login: On
Allow full disk access for remote users: Yes
Allow ...
1
vote
0
answers
356
views
How to add SSH key to Gitlab-ce in Docker
I am running Gitlab-ce V16.5.1 in a docker container. I need to add a proper SSH key to my profile in order to use HTTPS/SSH and to enable my pipelines to complete without generating HTTP Basic Access ...
0
votes
0
answers
23
views
OpenSSH on headless piOS closes connection immediately on connection command
I run OpenMediaVault and Docker/Portainer on a headless rpi4. I've never had SSH issues before, have it on a custom port but never been a problem. I ran -vvvv and see it failed to open id files that I'...
1
vote
1
answer
2k
views
Listing host's available ssh ciphers from client
Is there a way for a client to check available SSH ciphers and algorithm without using NMAP?
I have configured my sshd_config to disable some cipher and algorithm found by my security team.
Just wanna ...
0
votes
0
answers
1k
views
Does ssh has client side log file?
I want to know the history of SSH connections on client side (when and which remote host this machine connected to). I know sshd has logs on server side, is there similar thing on the client side?
I ...
4
votes
0
answers
527
views
How to troubleshoot a long delay when connecting over SSH?
SSH'ing to my Linux workstation from my Mac laptop works totally fine, except that there is sometimes a very long delay before I see a prompt. If I try again then it's fast like normal, but a few ...
0
votes
0
answers
369
views
Windows Server 2019, SSH server, max number of connections or concurrent users?
We are using Win2019, and enabled the built-in SSH server. We have different client devices (each with different IP addresses) connecting to this SSH server.
We would like to know, on the Win2019 SSH ...
0
votes
0
answers
420
views
"Connection reset" after "debug1: SSH2_MSG_KEXINIT sent"
So, here is the view from the client side - I do not yet have access to the server-side logs... What might be happening ? What should I check ? What should I do to get better information ?
jm@...
0
votes
0
answers
119
views
Remove BOM mark in sftp username when using openssh
I'm running an SFTP server using openssh 1:8.9p1-3ubuntu0.1 on Ubuntu 22.04. A reoccurring issue with connecting clients is the username is prefixed with \357\273\277 one or more times. This is a UTF-...
0
votes
0
answers
233
views
How can I make password SSH more secure?
I need to log into a machine using a password. (This machine is provisioned automatically for me and others, and keys aren't provided, only individual passwords)
At first I used openssh from Windows ...
3
votes
1
answer
6k
views
How to use ssh-agent as a system service on mac
I'd like to run ssh-agent as a system service, so I have one global ssh-agent running that is accessible from all shells and GUI programs. On Linux I followed these instructions to run ssh-agent as a ...
0
votes
0
answers
264
views
SSH remote forwarding fails for root user
I'm using remote forwarding for Sublime (rmate) using the following configuration in my (local) .ssh/config file:
Host host
User user
Hostname hostname
RemoteForward /home/user/.rmate.socket localhost:...
0
votes
0
answers
398
views
Outbound message too long when uploading files to apache sshd sftp server
The following error is thrown while trying to upload files (>=500KB) from linux sftp client to an sftp server implemented with apache sshd.
Outbound message too long 262197
The same server works ...
4
votes
1
answer
4k
views
How to configure powershell for OpenSSH instead of cmd
I have a Windows 10 Pro machine that I can ssh into (OpenSSH Server is installed/running) as cmd. I want to have the shell as powershell.exe (not the default of cmd.exe).
I tried setting the ...
4
votes
1
answer
5k
views
SSH connect with -vvv as root waits very long at pledge:filesystem
Client OS: macOS 13.4
Server OS: Ubuntu Linux 20.04 LTS (VPS)
11.22.33.44 is a placeholder for the actual VPS IP.
When ssh-ing into the VPS where I run websites on it takes TWO MINUTES to connect when ...
2
votes
1
answer
625
views
SSH connection fails for a Microsoft_account user on Windows 11 "windows authentication failed. error 1326"
Update 18th July: After debugging for some time, I have found out that the issue is seen with Microsoft account only, not with a local account. I have updated the problem statement accordingly.
Setup
...
0
votes
1
answer
232
views
Is there a way to tell if my key pair is an OpenSSH keypair? [duplicate]
Our Oracle service is migrating servers to the Oracle Cloud. We need to change the host for our SFTP access. "The authentication via your SCP login name and SSH2 keys remains the same if your ...
0
votes
0
answers
279
views
Can't SSH into Windows VM despite setting up OpenSSH
A couple of days ago, I set up a Windows 11 VM using VMware Fusion on my Macbook Air, and despite the janky and, at times, incredibly frustrating installation process (finding ISO files that will run ...