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
0
votes
0answers
15 views

SSH permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I'm not sure why I'm getting a permission denied error. Can anyone help me understand my log below? I'm using Windows Subsystem for Linux with an Ubunutu distro. I used ssh-keygen to generate my keys ...
0
votes
1answer
24 views

Why do I need an administrator account to mount a network drive via ssh?

I'm trying to mount a network drive over OpenSSH on Windows 10 (authenticated with username and password of a non-admin user). When I use the net use command (via a PowerShell script) to mount a ...
0
votes
0answers
39 views

Cygwin SSHD causes 100% CPU load

I run cygwin 32-bit on Windows 10 Pro b19042 [Cygwin is 3.2.0-1], with OpenSSH [8.5p1-1], using sshd to access the machine from afar, and notice (often multiple) processes of sshd.exe with 100% CPU ...
1
vote
1answer
29 views

Restrict access to sftp server for user by IP address

I'm trying to restrict access to an existing sftp server to a user, to allow it log in only from an IP address, but it's not working. In my case, I'm trying to allow to user some_user to log in ONLY ...
7
votes
2answers
376 views

Breaking infinite recursion in ProxyJump setting for wildcard host settings

I would like to have all my SSH connections to my corporate network go through a particular jump host: Host *.initech.biz ProxyJump conclusions.initech.biz This accidentally causes SSH to try to ...
0
votes
1answer
28 views

How can I connect to PostgreSQL database on a server through an SSH Tunnel using R?

I am trying to connect an RStudio Session to a PostgreSQL database which is on a server (Digital Ocean) through a SSH Tunnel. I am new to the SSH Connections, specially using R. Systems Information: ...
0
votes
1answer
29 views

Cannot SSH to Windows with public key authentication

I'm trying to connect to Windows through SSH with public key authentication. But apparently not working. Here are what I have done. I installed and activated the SSH on the windows. Get-...
-1
votes
0answers
23 views

How to generate Windows OpenSSH default config file?

I'd like to know where is the default OpenSSH config file ("sshd_config" for Linux) or if not exists how to generate the file. I thought SSH setting file "sshd_config" and "...
1
vote
1answer
20 views

Automatically run commands after SSH login to Windows server

Is there a way to run commands automatically when user logs in with SSH to Windows Server? I tried to implement this using the AutoRun in Command Processor registry, which runs commands when any cmd....
0
votes
1answer
21 views

Failed to Load ECDSA P521 Host Key on Windows SSH Server

I am trying to generate an ecdsa p521 host key on my Windows 10 SSH Server as my client only supports ecdsa 521 key. Thus, I have used the following steps but I failed to load the p521 host key from ...
0
votes
1answer
25 views

ssh gives 'Permission Denied' on valid username/password credentials (ssh set to accept password log in)

I have a strange issue on a CentOS 7 machine. If I login from the console, as two different usernames, I'm able to log in. However, when I try that same username/password combinations, I get ...
0
votes
0answers
25 views

Dropbear reporting “Bad hostkey signature” on some SFTP servers

I'm running an embedded Linux system with Dropbear installed to support SFTP operations. I had tested my system against a Globalscape SFTP server during development and things were working well. I ...
0
votes
0answers
38 views

OpenSSH on windows 10 connection not working: ssh_exchange_identification: read: Connection reset by peer

I have installed OpenSSH server and client on a windows 10 laptop. It wasn't working, so I unistalled and reinstalled both, then it was working fine. I could ssh into my windows machine from other ...
1
vote
0answers
15 views

How to use HiPAM authorization with OpenSSH?

My client is implementing HiPAM (or Hitachi ID) for production systems. One requests temporary access to machines in a certain group, and can, upon approval, access them either via an ssh-client ...
0
votes
1answer
25 views

Failed Openssh conenction

Hello i need help for solving sshd server or ssh client problame on my windows 10 OS. In the following section check the log of --vvv option output: PS C:\Users\dsafg> ssh dsafg@localhost -i $env:...
1
vote
1answer
21 views

How to get old SSH fingerprint format?

SSH has gone through several fingerprint formats and visualization methods. There are MD5 and SHA256 for formats. Hex, Base64 and ramdomart are different visualizations. For a short time, however, ...
0
votes
0answers
62 views

ssh: connect to host xx.xx.xx port 22: Operation timed out Arch linux

I am trying to connect my home machine over ssh. openssh is installed and sshd serivice is enabled and running ➜ systemctl status sshd ● sshd.service - OpenSSH Daemon Loaded: loaded (/usr/lib/...
1
vote
0answers
18 views

Cannot relogin by ssh after rebooting Yocto Linux

Prerequisite: HostPC(Windows) as client LinuxBoard(yocto linux) as server LinuxBoard eth0 already setting static IP from the start SSH connection via ethernet cable ssh_config on HostPC (C:\...
0
votes
1answer
30 views

ssh using id not working, falling back to password

I have done ssh-copy-id from my local to remote machine, and the remote machine does show .ssh/authorised_keys. But, when I am trying to do ssh remote its falling back to password. Here is the bottom ...
0
votes
1answer
27 views

Can't SSH to Windows Host Using Public Key Authentication

I am trying to ssh to a windows host from a mac. On the windows host I have confirmed the ssh client and server are running: Running ssh-agent OpenSSH Authentication Agent Running sshd ...
0
votes
0answers
36 views

SSH 2FA on Arch Linux is not working: password prompt not recognizing password and different port not working

Recently I chose Arch Linux as my choice for my webserver and since this was my first time, it took me a couple of days. I installed OpenSSH and it worked! I followed an article on steps to secure SSH....
1
vote
0answers
35 views

Starting OpenSSH server in Windows with debug messages enabled (-d)

I have a very strange problem trying to make the OpenSSH server that ships with Windows 10 working fine. Basically, if I start the service manually by running C:\Windows\System32\OpenSSH\sshd.exe, ...
0
votes
1answer
27 views

connect ssh key on server windows fail

I want to connect to a Windows server with an SSH key and if I connect via an SSH password, it's works, but if I via my SSH key, it fails I'm user on this server and my public key is %UserProfile%/....
0
votes
0answers
40 views

SSH won't accept the public key

it's my first time seeing this error and was wondering if anyone knows how to fix this, i kept getting permission denied even though publickey is present. debug1: ssh_rsa_verify: signature correct ...
1
vote
1answer
64 views

SSH authentication using gpg-agent and another source for keys?

tl;dr: Is there a way to either disable the persistent import functionality of gpg-agent or work around that to allow using different sources for SSH keys? Situation I use GnuPG 2 keys (on a YubiKey) ...
1
vote
0answers
24 views

ssh localhost fails to accept my public key

I'm setting up my virtual machine in CI such that I can tests a script that uses ssh, using e.g. ssh localhost. The problem is however that my public key (in ~/.ssh/id_rsa.pub) keeps being refused, ...
0
votes
0answers
45 views

SSHFS Exit status 1

folks! I'm trying to mount my remote drive via SSHFS. It was working yesterday and now it's not working today. Any idea what's going on? Tried searching for this but couldn't find any answers. I'm ...
0
votes
1answer
17 views

Bastion with private keys, jailed users and proxycommand

I want to setup a bastion for SSH and tunneling HTTP : let the user use a private key stored on bastion without having read access to it permit the use of proxyjump (or proxycommand) on the client ...
0
votes
0answers
31 views

Is it possible to include -T option of scp in .ssh/config?

scp with the -T option does this (openssh implementation): Disable strict filename checking. By default when copying files from a remote host to a local directory scp checks that the received ...
1
vote
1answer
36 views

Key refused WinSCP/PuTTY issue when connecting to Windows OpenSSH server

I'm trying to configure a private key for use use with WinSCP and PuTTY/Plink but I'm stuck (trying to connect from Windows 10 to Windows 2012 Server). I have OpenSSH installed on my windows server ...
1
vote
0answers
47 views

PowerShell takes ~10 seconds to execute first command, but only inside OpenSSH Server

I have OpenSSH for Windows (server and client) installed on multiple PCs. The problem only occurs on one particular PC, but it's my main desktop: Scenario #1: I ssh into my main desktop PC (let's ...
1
vote
1answer
111 views

Adding parameters to DefaultShell in Windows OpenSSH Server (e.g. powershell.exe -NoLogo)

I have Windows OpenSSH server installed and working properly. I can change the default shell that is ssh'd into using HKLM:\SOFTWARE\OpenSSH and adding a DefaultShell property as described here. So ...
0
votes
0answers
14 views

Vim cannot detect openssh installation on windows 10

Vim/Gvim is unable to detect my OpenSSH installation in windows10. How do I make vim detect the installed ssh? I want to edit files over sftp using vim, which I cannot do at this moment. I can use ssh ...
1
vote
0answers
20 views

%PATH% contains unresolved variables when connecting to OpenSSH Server on Windows 10

I'm running OpenSSH Server on Windows 10. When I log in from another machine via SSH, the PATH contains unresolved variables. If I have a variable MYPATH defined as MYPATH="C:\MyHome", then ...
0
votes
0answers
14 views

Tunneling or port forwarding with Windows 2016 and Gateway in the middle

I connect to the office PC (Windows Server 2016), by RDP with a gateway just before it connects and established in the RDP properties before conecting. After I connect to the office PC by RDP, I can ...
0
votes
0answers
23 views

scp copy Windows to Linux : Directory gets o=write?

I'm confused about the file permissions set by scp when I copy a windows local folder to a Linux (Ubuntu) remote. When I copy a local file to the home directory of the remote user that folder has ...
1
vote
1answer
71 views

Configure OpenSSH to disconnect idle SFTP clients

How to configure sftp-server subsystem specified in /etc/ssh/sshd_config to disconnect idle SFTP clients. Neither sshd_config manual nor nor the sftp-server manual have info to configure such ...
1
vote
0answers
52 views

How to use Putty with Windows openssh-agent?

I've upgraded my Windows OpenSSH to the latest version (https://github.com/PowerShell/Win32-OpenSSH/releases/) in order to get it accept my RSA key. Now i can add my key e.g. with ssh-add private.key ...
0
votes
2answers
33 views

How to ssh to EC2 *without* having to specify the .pem file?

There must be some easier way than the documented ssh -i my.pem user@ip-addr, by putting the pem file in ~/.ssh and ssh knowing to use my.pem based on user@ip-addr, but I can't figure out how.
0
votes
0answers
18 views

TortoiseSVN and Windows OpenSSH

I've installed OpenSSH on my Windows 10 and it works nice. I use TortoiseSVN on top of that (and avoid the use of their plink SSH client). It works, but an insane number of command line windows pop ...
1
vote
1answer
16 views

How to configure different authentication methods for different OpenSSH processes

I have an SFTP server on CentOS 7. On this server, I run 2 OpenSSH processes with different configuration. one is standard SSH on port 22 for administration purpose the other is only SFTP on port ...
0
votes
0answers
29 views

SSH is unable to connect by hostname

I had a curious issue recently after I changed addresses, ISP, and router. I have a linux box running openssh which I was using as a NAS. I was able to log into the device using a command similar to ...
0
votes
1answer
117 views

How to troubleshoot timeouts when trying to ssh into Ubuntu 20.04 on WSL 2?

I'm trying to ssh into Ubuntu 20.04 running on a Windows 10 machine via Windows Subsystem for Linux 2 (WSL 2). I've followed this guide on medium, and have additionally looked at this, this, and a ...
0
votes
1answer
51 views

Execute last command(s) in OpenSSH Client on Windows 10

I'm using OpenSSH Client shipped with Windows 10 (Home) through the Powershell. How do i repeat the last command(s)? I was used to using the up key to browse throught the last executed commands, but ...
0
votes
0answers
12 views

CTRL+C closes OpenSSH's connection when `XAuthLocation` is set

I'm trying to set up Win32-OpenSSH so that I can automatically x-forward but when I set XAuthLocation (to "C:\Progra~1\VcXsrv\xauth.exe") any time I CTRL+C it spits out [process exited with ...
0
votes
1answer
662 views

multiple ssh keys in one file with single passphrase

I have multiple ssh keys. Each time I reboot I have to do ssh-add for each of them and type passphrases to unlock each one. Is it possible to store all the in one container file which is added and ...
0
votes
0answers
81 views

rsync to windows server closes connection

I'm trying to rsync files to a remote windows 2016 server from my windows machine. This is the command I used rsync -Pav myuser@mydomain@myserver:D:\test . Error I got is: NoProfile : The term '-...
1
vote
1answer
80 views

Why is ssh-keygen generating two types of keys between Ubuntu 18 and Ubuntu 20?

I have two virtual machines. VM1 is on ubuntu 18.04 VM2 is on ubuntu 20.04.1 When I ssh-keygen on VM1 it gives me an RSA private key. When I do the same thing on VM2, its giving me an OpenSSH ...
3
votes
1answer
45 views

I have a ppk key file open in Notepad, but I do not remember it's passphrase. Can I retrieve the passphrase?

Basically the heading, I created a private key file using PuTTY a few days back and forgot the passphrase. Luckily, the file is still open in Notepad. I can see it's contents, but I cannot open it in ...
0
votes
1answer
30 views

OpenSSH - ssh-keygen - Generation of DH-GEX candidates at a specific start point fails

I'm playing around with ssh-keygen to generate new primes for OpenSSH for the purpose of education. The generation works when I don't pass a start point (default is a random start point according to ...

1
2 3 4 5
19