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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
1k 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 ...
Velocedge's user avatar
  • 141
0 votes
0 answers
314 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 ...
Jonny Marotte's user avatar
2 votes
1 answer
2k 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 ...
Intrastellar Explorer's user avatar
4 votes
1 answer
4k 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 ...
user513667's user avatar
2 votes
1 answer
474 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 ...
Bhuvan's user avatar
  • 161
0 votes
0 answers
49 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 ...
anchaides's user avatar
0 votes
1 answer
148 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 ...
Sarah Harrison's user avatar
1 vote
0 answers
237 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:...
Paolo Benvenuto's user avatar
3 votes
2 answers
1k 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-...
func0der's user avatar
  • 171
0 votes
0 answers
392 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 ...
János Geringer's user avatar
0 votes
1 answer
960 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 ...
Thomas Parikka's user avatar
0 votes
0 answers
219 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 ...
Zarquon's user avatar
1 vote
1 answer
1k 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 ...
Drk's user avatar
  • 121
1 vote
1 answer
88 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 (...
FumbleFingers's user avatar
0 votes
2 answers
695 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 ...
PGA's user avatar
  • 13
1 vote
1 answer
660 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 ...
Richard King's user avatar
0 votes
0 answers
24 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 ...
Frank Collins's user avatar
0 votes
1 answer
2k 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 (...
sebdb's user avatar
  • 1
2 votes
1 answer
347 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 ...
raviv0731's user avatar
0 votes
2 answers
1k 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 ...
Ale TheFe's user avatar
  • 111
0 votes
0 answers
286 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 ...
Jezza's user avatar
  • 1
2 votes
1 answer
2k 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 ...
IAmTheWalnut's user avatar
0 votes
0 answers
607 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@...
user357693's user avatar
3 votes
1 answer
364 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 ...
grekd's user avatar
  • 71
3 votes
1 answer
12k 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 ...
ceradini's user avatar
  • 131
1 vote
0 answers
74 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 ...
Mallikarjunarao Kosuri's user avatar
7 votes
1 answer
6k 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 ...
balu's user avatar
  • 311
1 vote
0 answers
28 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...)
BlxckShadow's user avatar
0 votes
2 answers
755 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 ...
AxillV's user avatar
  • 1
0 votes
2 answers
2k 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 ...
qwerty's user avatar
  • 11
2 votes
1 answer
627 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 ...
straumli's user avatar
0 votes
1 answer
147 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 ...
Mauricio's user avatar
2 votes
1 answer
724 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/...
merlin2011's user avatar
  • 2,015
1 vote
1 answer
359 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 ...
DKebler's user avatar
  • 198
0 votes
1 answer
3k views

How to include key exchange algorithms required to connect to router using OpenSSH client?

With OpenSSH_8.9p1 for Windows, I'm trying to connect to a NuCom router NC-WR764TGV: ssh [email protected] Output: Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. ...
jamacoe's user avatar
  • 154
1 vote
2 answers
356 views

Concerning sshd login attemps from unknown IP

I am running a Google Cloud Rocky Linux instance For some operations, SFTP is required I have found some concerning sshd login attemps from an unknown IP, limited logs below Mar 09 15:29:16 server-...
THEoneANDonly's user avatar
0 votes
1 answer
1k views

How do config that an SFTP user can access two root folders on different drives from OpenSSH Windows Server?

SFTP user is a service account so we cannot create 2 separate service accounts per employee. One service account is under group service 'Users' and 'Admin-Users' then it should be able to access the ...
Snowprincez Coffee's user avatar
0 votes
0 answers
199 views

SFTP account unable to log in the disconnect network drive on Windows server

We migrated the method for transferring files from any sources from FileZilla Server (Port 21) to SFTP Server (Port 22) due to security policy. FTP account with port 21 can log in to the folder ...
Snowprincez Coffee's user avatar
0 votes
0 answers
581 views

Permission denied (publickey, password) when running mpiexec using ssh

I am implementing a simple mpi code. I am using Oracle Virtual box and have created two Ubuntu vm's one named master and the other named slave. Both are connected and can successfully ping each other ...
Abdullah Chaudhry's user avatar
2 votes
0 answers
4k views

Ansible automatic ssh authentication using passphrase protected private key

I can't seem to get ansible to automatically pick up the SSH identity that I've added, and if I am prompted for the passphrase on my private key my passphrase seems to not be accepted, while the same ...
Indy Maat's user avatar
4 votes
2 answers
24k views

How to generate rsa-sha2-256 keys using ssh-keygen utility?

I want to generate rsa-sha2-256 ssh key pair using ssh-keygen utility. Can you please share the command for the same? For ssh-rsa, it's ssh-keygen -t rsa
raman bhadauria's user avatar
0 votes
1 answer
1k views

Public key login to computer with very old openSSH

I use ssh public key to login to a very old Linux machine running OpenSSH 5.9p1, and it's all worked fine for the past decade. Recently, though, I updated my work machine's OS (which is now running ...
Daniel Griscom's user avatar
1 vote
0 answers
255 views

SSH into windows 10 pc with Termux using keypair

So i want to SSH into my windows 10 pc via termux On server windoes 10 pc: 1.)installed OpenSSH using optional windows features. 2.)enabled the respective services On client termux app: -generated ...
AwesomeVk47's user avatar
0 votes
1 answer
2k views

OpenSSH says 'Permission denied' or 'Connection reset' after I modify my user name through netplwiz on my Windows server

The orginal user name of my Windows PC was the first five letters of my email that I used to register my Microsoft account. It looks quite weird, so I modified it through netplwiz. I've installed ...
Shuangcheng Ni's user avatar
0 votes
0 answers
75 views

Windows SSH-Server is only reading first line from "authorized_keys" file

I am trying to SSH from Ubuntu(WSL) to Windows but the OpenSSH-Server on Windows seems to be reading only the first line of authorized_keys file. When I put the SSH-Key I use to SSH from Ubuntu to ...
D_Gamer's user avatar
  • 101
1 vote
1 answer
1k views

windows openssh server authentification fails with correct password

I have 2 computers, one is windows 10, the other is macos 10.15.7. I try to login my windows 10 from my mac with ssh laptop-qjn9a0b1\[email protected]. Again and again, it said Permission denied, ...
Tokubara's user avatar
  • 123
1 vote
0 answers
865 views

SSH key authentication works from Linux but not from Windows

Three machines: A (Ubuntu), B (Windows) and C (Ubuntu) I have run ssh-keygen/ssh-keygen.exe on A and B. ~/.ssh/id_rsa.pub from both A and B are alive and well in ~/.ssh/authorized_keys. When I run ssh ...
user1767525's user avatar
0 votes
1 answer
348 views

Log in with either a password or a public key. But not both at the same time, and limit the PAM authentication to the root user

I am having difficulties configuring the ssh server. The scenario is as follows. The root user is the only one using google F2A (PAM), the restricted user only connects by password and the rest of the ...
Jaime Dalton Carbone's user avatar
1 vote
1 answer
1k views

ssh: Unsupported Match attribute final: Bad match condition

In my ~/.ssh/config file: Match originalhost my_server final exec "my_executable vault ssh cert" Host my_server HostName something.my_server.com User first.last AddKeysToAgent yes ...
Gabriel Staples's user avatar
1 vote
1 answer
125 views

How to debug ssh connection to remote user (when connection to root works fine)

I have an Xubuntu "Caller" and Fedora "Callee" in my garage. I'm setting them up to connect via SSH. Both are running OpenSSH, so the configurations are similar. I can connect as ...
4Dummies's user avatar
  • 183

1
2
3 4 5
23