Questions tagged [sshd]
sshd is the SSH daemon which responds to incoming requests. Do not use this tag for questions about Solid-state hard drives! They should be tagged with "hybrid-storage" tag.
391
questions
97
votes
5
answers
351k
views
Command Line SSH restart Mac OSX Mountain Lion
How can I restart the SSH service via the command line on Mac OSX Mountain Lion please?
Using ps aux | grep 'ssh', I was able to deduce that the process is most likely /usr/sbin/sshd.
From here I ...
97
votes
17
answers
273k
views
SSH-Key authentication fails
I'm trying to ssh into a CentOS server which I have no control over.. the admin has added my public key to the server and insists the fault lies with me but I can't figure out what is wrong.
Config ...
25
votes
2
answers
80k
views
How to restart ssh service on macOS?
How to restart SSH in Mac Pro?
When I used: sudo service ssh restart its shows:
Command not found
18
votes
3
answers
62k
views
How to uninstall/reinstall cygwin to use the sshd?
I installed cygwin/sshd without good results. I removed the c:\cygwin directory to reinstall. I removed the sshd Administrator user by hand.
I reinstalled the cygwin again, then run the 'ssh-host-...
17
votes
4
answers
19k
views
SSH - PasswordAuthentication no has no effect
I'm trying to configure my server to disable password authentication, I'm using keys now.
The problem is that PasswordAuthentication no is set, but it has had no effect. I'm still prompted for a ...
16
votes
5
answers
16k
views
SSH Agent loses identity while restart machine
After creating keys with name id_rsa at it's default location. I am adding identity to SSH agent with command ssh-add ~/.ssh/id_rsa, It's adding successfully.
I can SSH without entering pass phrase ...
15
votes
8
answers
23k
views
Windows SSH Servers?
I was wondering what people use as an SSHd server on Windows? I've decided that I want to be able to log in using SSH on my Windows computers but I don't want to use Linux full-time. What are my ...
14
votes
3
answers
26k
views
Logging into Windows 10 OpenSSH server with Administrator account and public key
I am unable to log into a Windows 10 OpenSSH Server from a CentOS OpenSSH client via public key. My password is always requested (and is accepted).
I've found many posts about setting the permissions ...
14
votes
1
answer
46k
views
How to do SSH agent forwarding on Mac terminal?
I have checked many tutorials regarding this but not getting clearly.
As per tuts, there are two way to configure for agent forwarding
in your config file ~/.ssh/config set
Host example.com
...
13
votes
4
answers
9k
views
SSH connection between two behind-nat computers through third public-ip computer
I have a computer at home (home-server) that runs irssi, rtorrent etc. My ISP is blocking every traffic from outside (dumb, I know, but it's the only ISP I can have).
I want to be able to log in into ...
13
votes
2
answers
39k
views
Restrict SSH to one interface
How can I restrict incoming SSH connection request to only one interface? I'm using Ubuntu Server 10.04 LST.
I want to lock down access to SSH to only one interface because I use the server as a ...
12
votes
8
answers
125k
views
Disconnected: no supported authentication methods available
I have the same exact problem described in this thread, but the answer accepted there is not the right one for me, because the user's home directory is local.
I think that I configured everything ...
11
votes
4
answers
16k
views
Configure default shell initialized by OpenSSH on Windows 7
Is there a way to configure OpenSSH on Windows 7 in to initialize another shell other than the default Windows command shell?
me@linuxhost:~
$ ssh me@windowshost
me@windowshost's password:
Microsoft ...
11
votes
3
answers
14k
views
Starting Windows GUI program in Windows through Cygwin sshd from ssh client
I would like to ssh into my Windows box running Cygwin sshd and run the Windows GUI application in that Windows box. I don't want X forwarding.
e.g. From ubuntu-server terminal, I ssh into Windows ...
11
votes
1
answer
59k
views
Understanding X Windows DISPLAY environment variable when tunnelling
I want to ssh to remote servers, both running CentOS with X11Forwarding enabled.
However the X application cannot run properly on one of them - on host B it works fine. But on host A I get the error ...
9
votes
1
answer
25k
views
Error enabling sshd on Ubuntu 16.04
I just installed Ubuntu Server 16.04 on a virtual machine and then installed openssh-server. When I tried to enable sshd:
systemctl enable sshd.service
I got this message:
Failed to execute ...
9
votes
3
answers
3k
views
Three-step authentication?
I'm using Ubuntu.
I'm just wondering if it's possible to have libpam-google-authenticator (which lets you log in using a code generated by your phone) AND certificate authentication set up to work ...
8
votes
3
answers
8k
views
Stable reverse port forwarding in SSH and stale sessions
Using VPS to forward ports behind NAT:
for((;;)) { ssh -R 2222:127.0.0.1:22 [email protected]; sleep 10; }
When connection is broken somehow and it is reconnecting.
Warning: remote port forwarding ...
8
votes
2
answers
10k
views
Cygwin Connection closed by ::1
During the installation of Hadoop I am trying to setup CYGWIN and ssh. Installed and ssh also started successfully and setup authorization key as instructed HERE but When I try to connect to the ...
7
votes
1
answer
6k
views
SSHD on Windows
I installed Git for Windows and it came with the "Git Bash", which is basically MinGW32. I noticed that it has SSH, but doesn't have SSHD.
What is the easiest way to get SSHD in MinGW32?
6
votes
1
answer
2k
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 ...
6
votes
2
answers
8k
views
Do you know linux live-cd with sshd enabled by default? [closed]
please advice a Linux live-CD which has an sshd server enabled by default. I want to use it as rescue and setup for headless servers.
It should get ip by dhcp or fallback to reasonable default ip if ...
6
votes
7
answers
9k
views
Synology DSM 6.2.x: How to SSH as non-admin user
Since DSM 6.2.2 we have troubles connecting to a Synology NAS as non-admin user via ssh. Before this was possible by simply changing the login shell in /etc/passwd from /sbin/nologin to /bin/sh. This ...
6
votes
2
answers
16k
views
Finding sshd log file
I'm experiencing some problems with SSHD on my server.
I'm trying to set up passwordless (pub/pv keys) authentication. It worked for my other servers, but not for this one. The SSHD agent adds my ...
6
votes
1
answer
10k
views
No SSH access to a Dir-615 router running DD-Wrt firmware?
My current network setup consists of a D-link dir-615D1 flashed with DD-Wrt (v24 PreSp2 Build21061). This is hooked up directly to a Windows 7 PC with an Ethernet cable (With no internet access).
I ...
6
votes
2
answers
20k
views
Slow data transfer using SSH
The server is an ubuntu server 11.04 with sshd.
SSH works fine for console programs.
But data transfer is slow, which is very annoying when transferring large files.
I tried two different client ...
6
votes
0
answers
19k
views
How do I change the allowed host key algorithms for SSH?
I am writing an application which uses the libssh library. I am trying to establish a connection from the client side where the app runs to the server. However, instead of connecting, I get an error ...
5
votes
4
answers
27k
views
Ping Equivalent for SSH
Is there an equivalent to running ping $HOST but for the ssh daemon? Just to check if it's running, no attempt to log in as a specific user or validate with credentials
Something like
DAEMON_UP=$(...
5
votes
2
answers
4k
views
Windows 10 sshd - passwordless incoming ssh demands a password
I am attempting to set up passwordless, passphraseless ssh from a Linux Mint 19.1 host to a Windows 10 host. The Windows 10 host has OpenSSH_for_Windows_7.7p1 on it. This is Microsoft's OpenSSH port.
...
5
votes
4
answers
39k
views
Ban an IP after multiple failed SSH login attempts?
Is there an easy way to block an IP that runs a brutforce login attack on my sshd? Maybe just an increasing time for the login prompt to appear.
I know fail2ban, but that did hang when I tried it. ...
5
votes
1
answer
16k
views
sshd_config options: `PermitTunnel` vs `AllowTcpForwarding`
I have trouble understanding the PermitTunnel option in the sshd_config file. How is this option related to the AllowTcpForwarding? Having PermitTunnel no does not seem to have any effect on tunneling ...
5
votes
4
answers
10k
views
Is there a client side work-around for a too-short auto logout from an SSH connection?
I SSH from one Linux host to another Linux host that I don't administer. Its /etc/ssh/sshd_config is apparently configured to auto-logout after an interval of inactivity that is too brief for my ...
5
votes
1
answer
3k
views
SSH not passing LANG environment variable
I'm running a Debian server (uname -v output #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23)). When I log in from any of several clients (macOS 10.13 laptop with default ssh, the "Prompt" app on iOS, among ...
5
votes
6
answers
18k
views
Cygwin sshd did not start due to a logon failure
After a cygwin sshd install, sshd service fails with:
Error 1069: The service did not start due to a logon failure
I try to give cyg_server standard user and admin access.
The error is the same with ...
5
votes
1
answer
3k
views
Should I be worried about /bin/sync when exposing my SSHD server to the internet?
I'm preparing to expose my server to the internet and would like to be as secure as I can be. I've taken security through obscurity measures such as changing from the default port 22, I've made sure ...
5
votes
2
answers
11k
views
What is the default login attempt rate limit?
On a standard Linux install with OpenSSH, what is the default rate limit for SSH login attempts using password authentication?
How many passwords can an attacker guess per hour?
5
votes
1
answer
3k
views
Configure Mercurial for SSH on alternate port and specific key with a passphrase?
I'm trying to configure mercurial for use on a remote machine that has sshd running on an alternate port, and for which my login requires a particular key, which uses a passphrase.
ssh is configured ...
5
votes
1
answer
8k
views
ssh ForceCommand vs. ProxyCommand
I need to have a group of users hop through a server ('bastion') into another machine ('dest') via ssh to commit code.
Seems like my options are:
tell users to use ProxyCommand in their .ssh/config ...
5
votes
1
answer
27k
views
How to enabled SSHD logging in “sshd_conf?”
Having the following sshd_conf file, how to enable server activity logging? What is the default place for sshd logs?
# $OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $
# This is the sshd ...
5
votes
4
answers
9k
views
SSH from host machine Win7 to guest Fedora Machine in VirtualBox
I'm using VirtualBox on Windows 7 to run Fedora 7. I seem to have my SSH on, as /sbin/service sshd status tells me. When I do an /sbin/ifconfig, I get this:
eth0 Link encap:Ethernet HWaddr 08:00:...
4
votes
1
answer
4k
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 ...
4
votes
2
answers
4k
views
Windows 10, sshd.exe missing
According to this, OpenSSH is now part of Windows. The executable files are in C:\Windows\System32\OpenSSH, and indeed I could see them on my system. However, sshd.exe is not there. Does anyone know ...
4
votes
2
answers
18k
views
How do I enable auto-logout of Interactive ssh logins after one hour
I have requirement where I want my ssh seesion to target will logout after one hour,but currently leaving an ssh session to target board idle does not get auto logout after one hour.
Below is what is ...
4
votes
1
answer
645
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 ...
4
votes
1
answer
3k
views
Is sshd hard-coded to require root access?
I am attempting to run an SSH daemon as a non-root user, as I want to provide SSH access to our Git repositories on a server which I do not have root access for. I have got it to run using a custom ...
4
votes
3
answers
8k
views
How Can I Regenerate SSH Keys?
Here are the keys generated by ssh and those are NOT created by me.
# ls -l /etc/ssh/
total 276
-rw-r--r-- 1 root root 242153 Mar 22 2016 moduli
-rw-r--r-- 1 root root 2208 Mar 22 2016 ...
4
votes
1
answer
1k
views
ssh banner per user
I want to notify a certain user to call me, the admin, since I disabled his account. I could set /etc/issue.net, but this is shown to all login attempts. Is there a way to restrict a message/banner to ...
4
votes
2
answers
3k
views
Why does ssh login with same keypair work for one account but not the other on the same machine?
I have an RSA public/private keypair on my laptop; on a remote machine I have two accounts A and B which each have the public key in /home/{A,B}/.ssh/authorized_keys. With the private key loaded in ...
4
votes
1
answer
5k
views
How to setup ssh, key-based ("password-less") logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients?
How does one setup ssh, key-based ("password-less") client logins to a Linux/MacOSX sshd server via Windows, Linux, or MacOSX clients?
[Seeking both basic, conceptual understanding of key-based, ssh/...
4
votes
1
answer
333
views
CURL fails with exit code 18 for SFTP with just few bytes remaining for file sizes less than120KB , but not when I add strace to sshd
There is weird issue with curl in Amazon Linux 2 server.
It fails with exit code 18 with just about ~1MB bytes to read. So to troubleshoot the issue, I have setup local SFTP server.
so my curl command ...