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.

Filter by
Sorted by
Tagged with
96 votes
5 answers
346k 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 ...
James Webster's user avatar
96 votes
17 answers
263k 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 ...
Tim's user avatar
  • 961
24 votes
2 answers
77k 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
Aarthi Thala's user avatar
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-...
prosseek's user avatar
  • 5,914
17 votes
4 answers
18k 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 ...
vaindil's user avatar
  • 1,289
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 ...
Niks's user avatar
  • 811
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 ...
Ibrahim's user avatar
  • 803
14 votes
3 answers
25k 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 ...
Dave's user avatar
  • 1,019
14 votes
1 answer
45k 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 ...
Niks's user avatar
  • 811
12 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 ...
seler's user avatar
  • 353
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 ...
WinWin's user avatar
  • 980
12 votes
2 answers
38k 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 ...
wowpatrick's user avatar
  • 4,389
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 ...
mlegge's user avatar
  • 163
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 ...
Win Myo Htet's user avatar
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 ...
Summer_More_More_Tea's user avatar
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 ...
Jesse W's user avatar
  • 301
8 votes
1 answer
24k 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 ...
seven-dev's user avatar
  • 195
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 ...
Vi.'s user avatar
  • 17.2k
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 ...
manurajhada's user avatar
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?
LantisGaius's user avatar
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 ...
NotTheDr01ds's user avatar
  • 22.1k
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 ...
xoid's user avatar
  • 165
6 votes
7 answers
8k 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 ...
TylerDurden's user avatar
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 ...
Neozaru's user avatar
  • 161
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 ...
suit's user avatar
  • 194
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 ...
Zotta's user avatar
  • 161
6 votes
0 answers
17k 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 ...
DocDriven's user avatar
  • 171
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. ...
dstromberg's user avatar
5 votes
4 answers
37k 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. ...
panzi's user avatar
  • 203
5 votes
1 answer
15k 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 ...
BoZenKhaa's user avatar
  • 185
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 ...
Scott Colby's user avatar
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 ...
Camille Goudeseune's user avatar
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 ...
Philippe Blayo's user avatar
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 ...
Will's user avatar
  • 53
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 ...
NVRAM's user avatar
  • 838
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 ...
lorenzog's user avatar
  • 2,260
5 votes
1 answer
25k 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 ...
Mulligan's user avatar
  • 689
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:...
0fnt's user avatar
  • 1,941
4 votes
4 answers
26k 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=$(...
Lucas Wood's user avatar
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 ...
Ray's user avatar
  • 481
4 votes
2 answers
17k 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 ...
AMIT 's user avatar
  • 557
4 votes
1 answer
624 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 ...
Username Obfuscation's user avatar
4 votes
3 answers
7k 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 ...
diveintohacking's user avatar
4 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?
Zaz's user avatar
  • 2,526
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 ...
math's user avatar
  • 2,653
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 ...
tobym's user avatar
  • 212
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/...
Johnny Utahh's user avatar
4 votes
1 answer
237 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 ...
GP92's user avatar
  • 277
4 votes
1 answer
5k views

Setting up sshd_config in cygwin for AES encrypted file transfer

I'm a bit newer to cygwin and sshd, and I want to configure sshd to allow encrypted SFTP file transferring. From what I understand, I need to find some sort of sshd_config example (which for some ...
Stellar Sword's user avatar
4 votes
2 answers
11k views

Cygwin OpenSSH closes immediately after a connection

Trying to connect to cygwin-sshd using putty or cygwin ssh on localhost, here is all I get. I have it working fine on a different Win7x64 machine but this one is proving hellish. Config files for ...
boatcoder's user avatar
  • 542

1
2 3 4 5
8