Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
14 views

How to add/remove drives to Windows OpenSSH SFTP server?

I've setup the built-in OpenSSH in Windows 10 and connected remotely via WinSCP SFTP protocol. I seem to have access to all folders in my C: drive, but I cannot access the external drives of my ...
1
vote
0answers
36 views

how best to locate openssh credentials for powershell script run by SYSTEM

I've got a powershell script in the form $commands = @" echo "1 + 2" | bc "@ $commands | ssh user@1.2.3.4 Right now what I'm doing is setting up ssh keys once ahead of time, but the problem is ...
0
votes
2answers
26 views

Ubuntu sftp chroot jail path not being read?

I've encountered a problem, that I've been messing around since hours now, not understand what is happening. I have read tons of guides on this, which should be a 2 minute setup task on Ubuntu, and I ...
3
votes
1answer
48 views

When is asymmetric and symmetric encryption used in SSH?

I was reading the following document: https://www.digitalocean.com/community/tutorials/understanding-the-ssh-encryption-and-connection-process In the asymmetric encryption it looks like the shared ...
0
votes
1answer
49 views

Connecting on SSH server takes too long

So I created an OpenSSH server on a win-7 machine, I can now successfully login on it, but only on that machine too. What I meant is, I can only login on the server when my client is on the same PC as ...
-1
votes
1answer
100 views

How to install OpenSSH on Windows 7?

So I've been trying to install an ssh server on my local machine back home for ages, I tried to ask here yesterday and so far I haven't got any results. I'm a programmer, I have a PC (the server) in ...
0
votes
2answers
30 views

Where do I get the SSH password?

I installed OpenSSH server on a windows 7 pc, then I tried to use the client using ssh localhost command and it gives me the cmd just fine. Now on my android I tried to log-in to that server using ...
0
votes
2answers
29 views

“Failed password” and “Invalid user” - Secure Shell Server

I installed ssh-server on Ubuntu 18.04.01. When I try to access the server with PuTTY the error "access denied" is shown. The server log says "failed password" and "invalid user". I also changed "...
1
vote
1answer
30 views

SSH agent forwarding mixed with su user -

If I ssh to my server as such: ssh root@<ip> -A Then I do this remotely: ssh git@github.com # Hi username! You've successfully authenticated Then this remotely: su user - Then this ...
0
votes
0answers
27 views

SSH can not keyboard-interactive

Recently I am trying to play with the PAM modules, but I got myself in a pickle where I do not know how to use/enable keyboard-interactive on my sshd. lucian@local:~$ ssh luciannitescu@45.77.137.163 ...
2
votes
0answers
24 views

Can I disable Apples ssh server entirely, and install openssh-server?

After recent changes in high sierra to the way /etc/ssh/sshd_config I'd like to investigate ditching the macOS Sharing ssh, and put my own one in. Similar to doing apt-get install openssh-server on ...
0
votes
0answers
50 views

SSH connection to port 22 is refused/timed out. Can't install key to server

I have been having issues with connecting to my ssh server. After installing ssh and other server packages I have been trying to connect as a root user. Each time it says the connection timed out. I ...
0
votes
0answers
43 views

SSH Server refused public-key signature despite accepting key

I did the following on a Windows Server 2008 R2: Installed OpenSSH 0.0.24.0 by executing this command -> powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1 and generated the keys with ...
1
vote
0answers
108 views

How to compile and install openssh from source on Ubuntu 18.04? [closed]

Other than the openssh which I installed through the system package manager, I want to compile and install another openssh from source. I downloaded the most recent portable version of openssh(7.8p1). ...
0
votes
0answers
44 views

Red Hat Enterprise Linux Server release 7.5 : Unable to negotiate with ::1 port 8101: no matching cipher found. Their offer:

This is the error I am getting when I am trying to connect to Karaf wrapper 4.4.2. (ssh -p 8101 -l smx localhost). FYI: I don't want to update to a new version of Karaf or ServiceMix. Using Java 6. ...
1
vote
3answers
57 views

How can I switch the SSH that Windows 10 is using on the CLI?

I'm having some problems with another version of SSH that I have installed on a windows machine.. I don't know how it got installed... but it is there: C:\Windows\System32\OpenSSH I have another ...
1
vote
1answer
63 views

Pass local environment variables to Python script on Windows server using SSH

I am trying to execute a Python script on Windows server 2016. I have Win32-OpenSSH installed on Windows server. The python script expects two environment variables (BITBUCKET_REPO_SLUG and ...
0
votes
1answer
226 views

Permission denied (publickey,password,keyboard-interactive) error

I am trying to scp from Bitbucket pipeline wto Windows Server 2016. The Windows server has Win32-OpenSSH installed. Command output: + scp -v sample.conf john.doe@xx.yyy.zzz.xyz:/C:/Users/john.doe ...
0
votes
2answers
36 views

Tunnel secure TCP server

Which software can be used to protect (by password/certificate) access to tcp server (e.g. webserver)? background: the tcp server software has no authentication and cannot be modified. the service ...
0
votes
1answer
167 views

ssh permission denied (publickey,keyboard-interactive)

Why I insist on asking a question I've done a quick search on this problem and done a few solutions that have been said. None worked. What I did Termux as host. Installed apt install openssh, ...
0
votes
0answers
26 views

Running `ssh -i` without login

I would like to run sshd -i from a shell (via qrexec, if it matters), such that it will not ask for authentication. Security is not an issue here (nor is encryption required) because I am using SSH ...
2
votes
1answer
153 views

Spring Update Windows 10 ssh client reverse tunelling not working

I'm trying to use the ssh client command available in windows 10 since the spring update. I do not use the "OpenSSH Server" optional module and it is not installed, I'm using only the "OpenSSH client"...
0
votes
0answers
209 views

Putty closes by immediately after authentication, Cygwin-SSH on the server

I have installed OpenSSH with CYGWIN on Windows Server 2012 R2 server on Amazon EC - I wanted to create my SSH instead of creating instances in the admin dashboard. My SFTP connection with the ...
1
vote
1answer
40 views

Some SSH user authentications fail amid a large flurry of such authentications

I am working with a cluster of 20 hosts, all running CentOS 7.3. I am attempting to create an automated test to check that: Our expected network connectivity is in place Our SSH Single Sign On (SSO) ...
0
votes
0answers
86 views

SSH & Windows 10: Connection Works With Powershell and Git Bash But Not With Other Tools

I have generated a pair of keys and have added the public key to my server. When I want to connect to my server I use the command: ssh [username]@[server]. This works fine when I'm using ...
1
vote
1answer
64 views

How to use ssh on cpanel server? [closed]

I want to entry to my cpanel server, but I can't do it. This is what I did. I am going to the login page of my server on cpanel and I got in. Then: Security -> SSH Access -> Manage SSH Key -> ...
2
votes
1answer
76 views

Unclear about SSH (agent) Forwarding - Do I need to copy the public key into authorized_keys on every potential target?

I am trying to implement/test SSH Forwarding, but the only way, so far, that I can make it work is if I manually copy the public key (ssh-rsa xxxx) to each of the machines I want to SSH to. Suppose I ...
0
votes
3answers
1k views

Windows 10 v1803: where is OpenSSH Client?

At one time I installed OpenSSH Client as an Optional Feature when running Fall Creators Update (version 1709). I've since updated Windows to version 1803 and I no longer have OpenSSH Client ...
0
votes
1answer
53 views

Losing Kerberos Ticket after SSH to Current Host and Exit

I am running on CentOS 7.3. How may I prevent losing my Kerberos TGT in the scenario below? I understand the security implications of not destroying Kerberos tickets upon logout, and I will be ...
1
vote
1answer
65 views

SSH is not picking a more specific match from ~/.ssh/config

I have the following configuration values in my ~/.ssh/config file: Host *-lk User root Host beta-lk Hostname beta.*****.com Host accounts-lk Hostname accounts.*****.com Host demo-...
1
vote
1answer
970 views

Setting SSH keys on Windows 10 OpenSSH server

I've set up OpenSSH on various flavors of Linux tons of times. But I can't for the life of me get it functioning correctly on windows. There seem to be two sides to the issue. The permissions and ...
0
votes
1answer
110 views

Using Kerberos With Multi-Homed Hosts

I have several hosts running CentOS 7.3 with OpenSSH 6.6.1p1 and Kerberos 5 version 1.14.1. My hosts and their network interfaces are as shown below. Hosts are listed by their "primary" hostname, ...
0
votes
1answer
317 views

Win10 OpenSSH failed to install sshd service

I am trying to re-install the OpenSSH Windows 10 feature on my computer, however the sshd service is failing to install. I have tried installing the feature both via the "optional features" and via ...
3
votes
1answer
39 views

Is it possible for an ssh server to know which public domain name was used to log into it?

I have a situation where I need to set up an ssh server which will be accessible by multiple different public domain names, but will provide a different TTY interface to the user depending on the ...
0
votes
0answers
61 views

How Can a Linux Service (Jenkins) Obtain a Kerberos TGT Upon Startup?

I am running CentOS 7.3 on several Linux hosts. Kerberos is set up to facilitate Single Sign On for SSH. When running as my human user, I can SSH around in a passwordless manner without trouble. I ...
0
votes
1answer
34 views

Using SSH authorized keys to roll out privileged file update across a LAN?

I've got a server that from time to time automatically updates a set of privileged files (eg, certificate keys, configs etc). It needs to save those files on other systems on the LAN. I know roughly ...
0
votes
2answers
124 views

Determining Mechanism of SSH Password-Less Authentication

I am trying to understand the mechanism by which I am successfully performing password-less SSH authentication. Though public key authentication is enabled, this is not how it is happening. I have my ...
0
votes
0answers
222 views

How to setup vagrant-sshfs for work properly in Win10 with Hyper-V?

I am trying to setup Vagrant and Hyper-V and it is almost done but folder sharing is failing because I refuse to use SMB and instead I want to use vagrant-sshfs. It is know that in Windows system ...
0
votes
0answers
22 views

SSH from A to C through B while using the IdentityFiles to get from B to C

I am trying to set up an easy way to SSH from A directly to C through machine B. Right now A is configure to ssh into B. B has the identity file to hit C. Currently I'm following the following ...
1
vote
0answers
277 views

setting up key based authentication for windows 10 ssh server and client

I am trying to set up public private key authentication for the windows 10 beta openssh server and client. But i am running into the problem where it still asks for a password. here's what I did. -...
1
vote
1answer
313 views

OpenSSH via powershell - vi turns prompt blue

I'm on Windows 10, using Win32-OpenSSH via Powershell to connect to a CentOS 7 machine on my network. If I launch vi on a new file, or on occasion open other files, any and all new text in my window ...
0
votes
0answers
21 views

Even after setting HOME openssh looks at wrong place for keys

myhome@NOOSLLPT107144 ~ $ echo $HOME /cygdrive/c/Users/myhome $ ssh -vvv git@gitlab.com OpenSSH_7.4p1, OpenSSL 1.0.2j 26 Sep 2016 debug2: resolving "gitlab.com" port 22 debug2: ssh_connect_direct: ...
0
votes
1answer
47 views

SSH Server crashes randomly once in a week or so and comes back on when someone logs in directly

I have a Lenovo ThinkPad E560 (Ubuntu 16.04.4 LTS) stationed at our remote lab with a running openssh server that can be reached any time. Since last few months, the ssh server randomly crashes once/...
0
votes
1answer
348 views

Setting to use git-bash as default shell when connecting remotely via OpenSSH to Windows Server 2016

The Powershell OpenSSH website has good instructions on how to install and use OpenSSH. These include how to "Configuring the default ssh shell (optional)" If I elect to use git-bash instead of ...
3
votes
1answer
701 views

Smartcard OpenSSH and PuTTY SSH

I am attempting to ssh onto a CentOS 7.5 machine (192.168.1.5) via smart card technology. Now I can SSH using the master slot's x509 certificate with the matching private key to accomplish this, but ...
0
votes
2answers
48 views

Deactivating PEM Files

To this time, I could not find this question on somewhere else. If there is one, please let me know. One of my old employee got used to use a pem file we generated (Idk when) to login in our freebsd ...
2
votes
0answers
49 views

Potential problems in updating openSSH from 5.3p1 to 5.7p1 or 7.7p1(latest stable)

I have 3 Red Hat 6.6 servers with openSSH version 5.3p1 I require use of the scp -3 option which was not introduced until 5.7p1. Ideally, I would like to upgrade to openSSH 7.7p1 which is the latest ...
4
votes
2answers
258 views

OpenSSH - Any way to keep strict host key checking but check only the key and ignore server's name?

Question Is there a way I can keep the strict host key checking behavior on but have it check only the server's key fingerprint (which is effectively already a unique identity for the host), without ...
2
votes
1answer
179 views

ssh-copy-id to a tcsh on Solaris?

Im trying to copy a public key to the ~/.ssh/authorized_keys file on a Solaris server. It fails with this error message: $ ssh-copy-id -i ~/.ssh/id_rsa.pub <USER>@<HOST> /usr/bin/ssh-copy-...
7
votes
2answers
1k views

How to maintain ssh-agent login session with Windows 10's new OpenSSH and PowerShell

On my Ubuntu machine, I simply use Keychain to maintain a single ssh-agent which stays logged in. I'd like something similar to that on Windows now that OpenSSH is natively included. I was using Git ...