Questions tagged [openssh]
OpenSSH is one of the most popular implementations of SSH used today and available by default in many Linux and Unix-like operating systems.
1,119
questions
1
vote
1
answer
20
views
WSL2 is running in Windows 11 but won't launch and it is not accessible via SSH
My WSL in my Win 11 has been running smoothly until I suddenly cannot longer access it by any means (Ubuntu app, WSL from CMD/Powershell, and even SSH).
My Win 11 always shows that WSL2 is running but ...
0
votes
0
answers
55
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 ...
1
vote
0
answers
58
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
29
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
1
answer
47
views
Connection refused PuTTY to VMWare workstation guest Rocky Linux
I have Windows 10 Pro, in which VMWare Workstation 16 is installed. The guest system I use there is Rocky Linux 8.8.
The problem I’m getting Connection refused PuTTY to VMWare workstation guest OS ...
0
votes
0
answers
62
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
37
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
37
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 ...
0
votes
0
answers
73
views
Which ECDSA Public Key in a Windows 10 OpenSSH Server Will Be Used?
Linux OpenSSH client (Debian Stretch, OpenSSH version 7.4p1)
Windows 10 OpenSSH server (OpenSSH version 9.4p1)
Said Windows 10 OpenSSH server has two different ECDSA public key files loaded on its ...
1
vote
0
answers
69
views
Windows Open SSH Server to use NFS mount directory for SFTP
I'm trying to use a mounted file share as the target directory for my SFTP client, but I didn't manage. This is what I've done and tried:
I installed and enabled the Open SSH server in Windows Server ...
0
votes
1
answer
285
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
107
views
X11 forwarding over ssh - can't open display despite X11forwarding is on
I am using windows 10 as a client and the Raspberry pi 4( debian buster) as a server.
steven@DESKTOP-8EMNIS1 ~
$ ssh pi4 -Y -v
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: ...
0
votes
1
answer
23
views
openssh not requesting X11 forwarding
I can't see any message relating to X11 forwarding.
I am using windows 10 as a client and the Raspberry pi 4( debian buster) as a server
steven@DESKTOP-8EMNIS1 ~
$ ssh pi4 -Y -v
OpenSSH_for_Windows_8....
0
votes
0
answers
37
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
1
answer
40
views
Xming cannot locate SSH.exe through Windows Explorer
I hope this is the correct place to ask this, as it is somewhat of a Windows issue. My problem: When trying to "forward" (I think) X11 using Xming when I have an OpenGL program sitting on ...
0
votes
1
answer
107
views
How do I get Windows SFTP (OpenSSH) users a unique directory for that user [duplicate]
I have a Windows 2019 server set up with OpenSSH version 7.7:
$ ssh -V
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
I want to give each user their own directory; I have a user [fti] and want them ...
0
votes
0
answers
57
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 ...
0
votes
1
answer
140
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 ...
0
votes
1
answer
343
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
116
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
0
answers
20
views
It it posible to set up ssh config in such a way connections to host.alias get resolved to "host.subdomain"
I connect to a series of servers in the form of host.subdomain.domain.example.com different subdomains may or may not have hosts with the same name.
an obviously simple solution would be to do ...
0
votes
1
answer
41
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 ...
1
vote
0
answers
68
views
ssh authenticates but end with timeout
EDIT:
Putting sshd in debug3 mode, this is what it ends in:
lug 08 11:56:15 huaweipc sshd[113871]: Accepted publickey for paolo from 127.0.0.1 port 37762 ssh2: ED25519 SHA256:...
1
vote
1
answer
213
views
Why does ssh-agent with [email protected] key produces agent refused operation
Client:
Arch based distro
OpenSSH package version: 9.3p1-2
SSH-Agent started with ssh-agent -c in fish shell
Key generated with: ssh-keygen -t ed25519-sk -f ~/.ssh/servers_ed25519_sk -O verify-...
0
votes
0
answers
139
views
Converting putty private key to openssh format causing Invalid key length failure
I've a putty generated keypair file from which I try to save the private key in openssh format with:
puttygen -O private-openssh privat.ppk -o privat.pem
But when I try to use the private key for ...
0
votes
1
answer
175
views
PuTTYgen Error "Couldn't load private key (decryption check failed)
I'm trying to load an OpenSSH private key that was created in ssh-keygen on Windows 10 22H2 to export it as a ppk for use in WinSCP 6.1 for SFTP authentication. When I try to do so in PuTTYgen 0.78, I ...
0
votes
0
answers
67
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 ...
1
vote
1
answer
273
views
ssh hangs after successful authentication on command prompt, powershell and wsl2 but not PuTTY
The Issue
SSH connection hangs after a successful login when using Command Prompt or WSL2 on my local machine. However, the same SSH connection works without any issues when using PuTTY. I am able to ...
1
vote
1
answer
50
views
Reliably detach from a Raspberry Pi rsync process and leave it running
For years I've been using the following sequence (via ssh from my Linux Mint PC) on several different "headless" Raspberry Pi's to copy large folders over the Internet to my friend's PC (...
0
votes
2
answers
113
views
Make OpenSSH sftp prompt for username instead of using the local one
I have created a working script that I need to modify.
The script is very simple.
cd /d path
echo put *.pdf | sftp user@ip_address.
del *.pdf
I'd like to find a way to do not write down the user ...
1
vote
1
answer
226
views
Open SSH character encoding issue
I have been asked to replace an old insecure version of FreeSSH with OpenSSH on a couple of our servers, and am now having a problem that appears to related to character encoding types.
We have a ...
0
votes
0
answers
20
views
Ubuntu initial account can NOT log by public keys
I tried to ssh logging from my Win10 client to Ubuntu server without annoying password input.
So I configure my Win10 client as this official link said.
And here is my 2 accounts:
1.The initial ...
0
votes
1
answer
651
views
ssh localhost, getting permission denied (password). (Windows 11)
I am trying to ssh into my windows 11 machine from my mac but continue getting a Permission denied, please try again. After a couple of failed attempts I get username@localhost: Permission denied (...
2
votes
1
answer
171
views
PEM formatted SSH cert with RFC 4716 format keys
I am trying to get a ssh cert for sftp setup with 3rd party vendor in pem format and should be SSH2, using RSA algo with the Key lengths of 2048.
Do the below steps make some sense (Please correct me ...
0
votes
2
answers
390
views
Unable to SSH on my ubuntu server with a user different from root
When I try to ssh to my Ubuntu Server as a user different from root the connection never works and the session is never established. However connecting from other computers works perfectly, so it must ...
0
votes
0
answers
58
views
SSH refusing connections for a couple minutes after boot
I have a home server I use hobby projects and I frequently use SSH on the machine, however after it (re)boots, any SSH connection attempt is refused for around a couple minutes before I can login ...
2
votes
1
answer
654
views
Unable to ssh into server with password - ssh-connection method none
I'm unable to SSH into server A, with any user running RHEL 8.4. It was working fine last week. Nothing shows up in /var/log/secure or in systemctl status sshd - the /etch/sshd_config is set to allow ...
0
votes
0
answers
159
views
How can I connect from a mac to a windows?
I have two computers on the same local networks and I have installed OpenSSH Server on the windows and activated the 22 port communication on the windows.
Then in my mac i put
ssh username@...
2
votes
1
answer
210
views
OpenSSH keys file cannot be UTF-16 formatted - prev: Windows (10) OpenSSH (Microsoft's flavour) refuses to accept all popular Public Key Algorithms
I have been trying to setup an OpenSSH server on Windows 10.
The issue is with the Public Keys, password auth works fine.
The file permissions for both normal and administrative users are not the ...
2
votes
1
answer
3k
views
SSH connection reset on windows
I'm struggling to setup the OpenSSH on my Windows system.
I tried to follow both a system installation (like this) and a manual installation from the binaries. I copied the OpenSSH files in C:\Program ...
1
vote
0
answers
36
views
Is there any downside of using for Proxy Jump using Public keys
I am trying to implement a Proxy jump between the client and server.
I am going through openssh server 8.9 documentation and did not find much information on usage and future problems using jump host ...
3
votes
1
answer
2k
views
OpenSSH v8 client talking to OpenSSH v6.7p1 server: "no mutual signature algorithm" because of disabled ssh-rsa? But why and how?
My server recently stopped offering me public key-based authentication. I tried to log in using my RSA public key and only got:
$ ssh -v <server>
OpenSSH_8.9p1 Ubuntu-3ubuntu0.1, OpenSSL 3.0.2 ...
1
vote
0
answers
25
views
How to see IP info of connected client on an OpenSSH server running on Windows? [duplicate]
Is there any command for Windows server side which displays the info used to connect to the server via SSH? (ip, port, etc...)
0
votes
1
answer
271
views
Windows OpenSSH Server can SSH into powershell but can't ssh into bash (WSL2 Ubuntu) Question Marks Error
I'm trying to ssh from my LAN devices (phone, laptop and even the same computer) into bash.exe following Microsoft's guide on changing the default shell for OpenSSH to bash.exe. Bash in this context ...
0
votes
2
answers
428
views
Unable to copy pub key with ssh-copy-id (ERROR: No such file)
I'm trying to use the ssh-copy-id command on my local host to copy a pub file to the remote host using these instructions.
user@local-host:~$ ssh-copy-id -i ~/.ssh/id_rsa_Tran.pub username@ipAddress
...
2
votes
1
answer
257
views
Windows11 ssh-agent does not remember passphrase
I am facing the issue that my running ssh-agent is not remembering my private key passphrase. It keeps prompting to enter it, each time I open an SSH session. I cannot figure out why and hope somebody ...
0
votes
1
answer
90
views
How to convert .ppk key with passphrase to OpenSSH key in batch?
My question is related to that one How to convert .ppk key to OpenSSH key under Linux? But in the case when the .ppk can have an associated passphrase.
According to the man page of puttygen “there's ...
2
votes
1
answer
353
views
Is it possible to port-forward to a Unix domain socket using the permissions of a different user on the target host?
Consider a server X, which users A and B.
I have permissions to ssh as user A, and to sudo as user B, but I do not have permissions to ssh as user B.
There is a Unix domain socket with path /path/to/...
1
vote
1
answer
118
views
sshd server: match a subdomain name of a client and not just IP of that client
using openssh 9.2
for security I am using match to restrict clients who may access the ssh server
Match Address 10.0.0.30
PubkeyAuthentication yes
this works fine but since this client machine ...
0
votes
0
answers
14
views
I want to add a feature on my server [duplicate]
I want to modify the server configuration so that it saves wrong passwords that I tried to login to via SSH
Note that the server is Linux