OpenSSH is one of the most popular implementations of SSH used today and available by default in many Linux and Unix-like operating systems.
Questions tagged [openssh]
1148 questions
13
votes
1 answer
Adding a Public Key to known_hosts File
I have downloaded the ECDSA public key (ssh_host_ecdsa_key.pub) from another machine. I want to add the key to my local known_hosts file before connecting to it via SSH. How can I do that manually (without comparing MD5 hashes on the screen)?
I'm…
PhilippVerpoort
- 133
10
votes
1 answer
Can’t specify which fingerprint hash to use
When I try this command it fails:
ssh -o FingerprintHash=sha256 example.com
Error message: command-line: line 0: Bad configuration option: fingerprinthash
Why is this? Has this option been removed from OpenSSH? My ssh client version is…
Carl Winbäck
- 508
5
votes
2 answers
Implementing chroot directory for sftp users
I am running OpenSSH64 on a Windows 2012 environment. OpenSSH64 is running and I can access the server. I have modified the sshd_config file with no success.
I have made the following changes:
Subsystem sftp C:\OpenSSH-Win64\sftp-server.exe…
4
votes
1 answer
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:dsafg\ujkulcs -vvv
OpenSSH_for_Windows_7.7p1,…
3
votes
3 answers
SSH “reverse” ProxyCommand variant
SSH "reverse" ProxyCommand covered
Workstation -> Intermediate <- Server
my situation is the exact opposite...
Workstation <- Intermediate -> Server
I'd like to ssh from workstation to server but Server is only accessible from Intermediate. I can…
chx
- 3,903
3
votes
2 answers
Modifying ssh public key - does it matter?
When ssh-keygen -b 4096 creates a key pair, the public key (id_rsa.pub) looks like this:
ssh-rsa…
Anthony Webber
- 135
1
vote
1 answer
OpenSSH 6.8p1 Cant use multiple AuthenticationMethods
I am running openssh 6.8p1 and I am trying to configure multiple authenticaton methods
Its works with just
AuthenticationMethods "publickey,password"
but not with
AuthenticationMethods "publickey,password keyboard-interactive:pam"
However sshd will…
Chris D
1
vote
1 answer
ssh config Host wildcards and fully-qualified names
I have a ~/.ssh/config file that looks like this:
Host server*
HostName %h.farm.example.com
When I ssh server01, it connects to server01.farm.example.com correctly.
But when I ssh server01.farm.example.com, it attempts to connect to…
Roger Lipscombe
- 2,303
1
vote
1 answer
OpenSSH: Restriction on Local Port Forwarding for groups
I'm trying to restrict users who connect via ssh on a server (with OpenSSH) to do local port forwarding on certain ports only.
I've found that setting the permitopen="address:port" option in their ~/.ssh/authorized_keys files do what I…
ixM
- 113
1
vote
2 answers
I can't ssh from a linux (ubuntu) to a windows 10 machine
I tried to ssh from a Linux(Ubuntu) to a windows 10 machine. But It keeps telling me to enter a password for the window machine. I entered the password correctly. when I debug the windows machine from PowerShell I got the following message
debug1:…
yoni
- 11
- 1
1
vote
1 answer
OpenSSH terminates other sessions on the same shared connection
Why does OpenSSH_8.4p1 terminate other sessions that share the same connection when ProxyCommand is used? Is there some way to prevent this?
Note: This behavior does not seem to happen if the ProxyCommand argument is omitted.
Steps to…
akiasvunc
- 13
1
vote
2 answers
How to match actual hostname in ssh config?
I got the following entries in my .ssh/config:
Host *.onion
ProxyCommand socat - SOCKS4A:localhost:%h:%p,socksport=9050
Host hidden-dev
Hostname blablahash.onion
this config worked fine on Debian jessie, yet after upgrade to stretch, this…
1
vote
1 answer
OpenSSH config assign port programmatically?
I have a crapboat of less-than-new computers that I've been hooking up to a small compute cluster because why not. I have a single master node that has a public IP address that these computers can all talk to. The worker nodes are behind a NAT. …
Him
- 366
- 3
- 14
0
votes
1 answer
direct ssh connection when default proxy is configured in ~/.ssh/config
Here's my ssh config:
Host *.*
ProxyCommand /usr/bin/connect-proxy -S proxy.home.net:1080 %h %p
It sets a default proxy for domains containing dots. I want to change it to connect directly to hosts matching *.home.net . Is it possible?
basin
- 514
0
votes
0 answers
How to Enforce Maximum Authentication Time in OpenSSH Configuration?
I'm attempting to enhance the security of my OpenSSH server configuration by enforcing a maximum authentication time limit. However, upon trying to implement this by adding the MaxAuthAge option to the sshd_config file, I encountered an error…