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.

0
votes
1answer
54 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, ...
-4
votes
0answers
18 views

Can't connect to my server using OPEN SSH2 Kerberos Auth on Mac OSX 10.13.5

ssh -K -v jackzhou@18.136.172.180 OpenSSH_7.6p1, LibreSSL 2.6.2 debug1: Reading configuration data /Users/jackzhou/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/...
0
votes
0answers
21 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 ...
0
votes
0answers
31 views

Spring Update Windows 10 ssh client reverse tunelling

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
61 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
36 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
46 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
54 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
37 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
522 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
30 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
53 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
313 views

Setting 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
70 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
131 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
37 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
36 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
33 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
80 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
160 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
18 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
143 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
166 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
20 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
45 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
0answers
168 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
433 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
39 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
133 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
0answers
109 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
613 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 ...
0
votes
1answer
95 views

ssh private & publc key questions

Hello I'm working on switching all my keys to ed25519. I've ran this command: ssh-keygen -t ed25519 -C "user on server" now it generates a private key and a public key. I copy the public key into ...
0
votes
1answer
306 views

SSH proxyjump with identityfile in the proxy only

I couldn´t find my specific case in other threads. Basically I have my PC (ubuntu), a proxy (Debian), and a target (Debian). I want to do a proxyjump from the PC to the target going through the proxy....
1
vote
1answer
35 views

SSH: How do we find user authentication mechanism used in sshd config at runtime

I'd like to modify sshd_config file to run one script if user ssh in with password and another script if user ssh into server using SSH Signed certificate. I see, This might be possible with the ...
0
votes
1answer
284 views

Using SSH/SFTP as an alternative to Samba?

I'm told using SSH/SFTP is a more secure alternative to Samba to edit a web server from a Windows host. However, I can't find how use it to create a path like Z:\ between Windows and OpenSSH: The ...
0
votes
1answer
170 views

Understanding debug log for failed ssh connection with key pairs

I've two personal computer (mac) with same pair of ssh keys. After one update on machine B, I can't access to machine A I execute this steps: Syncro with rsync .ssh dir from machine A to B Now ...
1
vote
1answer
725 views

OpenWrt: after restoring configuration backup, ssh pubkey authentication fails

After restoring configuration backup using Luci web interface, the ssh public key authentication stopped working: $ ssh root@192.168.1.254 -i ~/.ssh/id_rsa root@192.168.1.254: Permission denied (...
1
vote
0answers
40 views

OpenSSH Windows 10 Firewall correct rules?

I'm attempting to set up a Windows-10 OpenSSH tunnel back to my office computer using Microsoft's beta found here, and I've run into some trouble regarding Window's Defender Firewall. Using Wireshark,...
1
vote
0answers
52 views

Windows OpenSSH Public key issue

I have tried my best to get my ssh server configured although every time I try to log in with public key authorisation it comes up with a Server refused public key signature despite accepting key. I ...
1
vote
1answer
414 views

OpenSSH Server for Windows 10 - Could not enter anything in Ubuntu terminal launched from cmd / powershell SSH session

Would like to seek for advice for an issue regarding Windows 10's new OpenSSH feature. Firstly, I have installed the "ubuntu" from Windows Store following the support of Windows Subsystem for Linux. ...
0
votes
0answers
72 views

Is there a way to log output to a file when using OpenSSh in Windows 10?

I often use SSH to connect to my university's Linux Lab for school software development assignments. Until now, I've been using PuTTY to do this, but I want to switch to the SSH feature in Windows 10 ...
0
votes
0answers
221 views

Unable to login into host with OpenSSH 7.7 but works ok with 7.2

I'm trying to connect to a EC2 instance using a PEM file. The connection works just fine from my colleague's PC, but I can't get it to work from mine. EDIT: adding ssh connection output Mine: $ ...
0
votes
1answer
104 views

CentOS 7: Can't connect via WinSCP when bash is executed

I'm running CentOS Server 7 on a VM (ESXi) with root permissions. I have a bash script (in my /etc/profile.d/ directory) which is executed immediately after login. Before I created my .sh file in the ...
0
votes
0answers
572 views

How to change Default FTP Home Directory for OpenSSH SFTP on windows server 2012

How to change Default FTP Home Directory for OpenSSH SFTP on windows server 2012. Please guide me to change Default FTP Home Directory for OpenSSH SFTP on windows server 2012. It taken path C:\users\%...
0
votes
1answer
377 views

Confused with ssh - Permission denied (publickey)

How do i correctly setup open-ssh on Debian. I had it all working - logging in using an authentication key (PasswordAuthentication set to no) then suddenly i get a Permission denied (publickey). So i ...
0
votes
0answers
341 views

Reverse sshfs over ssh

I want to mount dir on remote machine from host machine connected over ssh preferably via ssh tunnel; with method described below. how to mount local directory to remote like sshfs? But if get peer ...
1
vote
0answers
695 views

Curl NSS error -12190 - Error in TLS handshake

I am getting below error while trying to download a package from a URL through putty: Proxy replied OK to CONNECT request Initializing NSS with certpath: sql:/etc/pki/nssdb CAfile: /etc/pki/...
0
votes
1answer
45 views

How to force host key when provisioning with Vagrant?

Whenever I reprovision from scratch (vagrant destroy / vagrant up) my machine, the host key changes and my ssh clients complain. I know the host key should be unique, but I am testing at the moment. ...
0
votes
1answer
653 views

ssh: Permission denied (publickey)

One colleague has worked on a server, and written ssh root@xxx.xxx.xxx.xxx and the password in our documentation. I just did ssh-keygen on my machine, and tried to do ssh -v root@xxx.xxx.xxx.xxx from ...