sshd is the SSH daemon which responds to incoming requests

learn more… | top users | synonyms

19
votes
3answers
80k 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 ...
12
votes
7answers
19k 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 ...
11
votes
3answers
35k 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-...
10
votes
8answers
72k 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 ...
8
votes
3answers
1k 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 ...
7
votes
3answers
1k 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 ...
7
votes
1answer
6k 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 ...
7
votes
2answers
7k 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 ...
6
votes
1answer
31k 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 ...
5
votes
1answer
2k 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 ...
4
votes
3answers
4k 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 ...
4
votes
3answers
4k 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 vi@vi-server.org; sleep 10; } When connection is broken somehow and it is reconnecting. Warning: remote port forwarding ...
4
votes
4answers
9k 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 ...
4
votes
1answer
620 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
1answer
4k 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
1answer
3k 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?
4
votes
1answer
8k 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 ...
4
votes
1answer
3k 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 ...
4
votes
4answers
3k views

SSH Advanced Logging

I've installed OpenSUSE on my server and want to set ssh to log every command, which is send to system over it. I've found this in my sshd_config: # Logging # obsoletes QuietMode and FascistLogging #...
4
votes
4answers
8k 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
2answers
361 views

How to start ssh server on different port?

I want to start ssh server on port 21 (for one of my local hosts). OS X Yosemite (10.10.4) I've changed /etc/httpd_config by adding: Port 21 Then restarted server: sudo launchctl unload /System/...
4
votes
1answer
3k 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 ...
4
votes
2answers
6k 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 ...
3
votes
2answers
11k 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 ...
3
votes
1answer
1k views

Does restarting sshd always keep existing sessions alive?

I booted a server and (too late) I discovered that some breaking change had been made to /etc/ssh/sshd.conf. Can I be reasonably sure that restarting sshd keeps existing connections ? (this was on ...
3
votes
1answer
5k 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 ...
3
votes
1answer
44 views

SSH key exchange configuration uncertainty

I'm currently configuring ssh on a server and reading trough several guides. Many feature a @url.tld after the option in KexAlgorithms like: KexAlgorithms curve25519-sha256@libssh.org This is ...
3
votes
1answer
271 views

how to control users login on Linux machine according to configuration file

I use the PAM to authenticate users login info from - http://linux.die.net/man/8/pam_listfile in my Linux red-hat machine I have 5 diff users user1 user2 user3 user4 user5 I want to enable ssh ...
2
votes
3answers
3k views

ssh server on runlevel 3

I have been trying to setup a ssh server on my desktop for remote access and have been running into a few issues. The first I have found is that sshd is not starting on boot. As soon as I run: sudo ...
2
votes
1answer
2k views

sshd_config AllowUsers Should Root Be Allowed?

I am asking here as i do not want to get locked out of my server. I do not want to allow root login to ssh, however if a user enters a "su" command i want them to be able to become root. So do i ...
2
votes
3answers
1k views

Can only ssh into Ubuntu 12.04 alpha machine when logged into console

I recently installed the latest Ubuntu 12.04 64bit alpha (2?) onto a VMware virtual machine in order to check things out. One strange thing I've encountered is that I can only successfully ssh into ...
2
votes
2answers
3k views

Using sshd_config to limit root login?

Using ubuntu 12.04, I want to use sshd_config to limit ssh-sessions coming from root to a fixed subset of IP's. I want normal users to be able to ssh from anywhere, but root should only be able to ssh ...
2
votes
2answers
59 views

Tasks done by ssh server when it receives a request?

When I ssh into a server using ssh -vvv user@ip It gives me all the information of the steps that a particular client is performing in order to connect to a OpenSSH Server. I was Wondering if ...
2
votes
2answers
313 views

SSH auth by public key not working for one user on a system

I can't setup public key authentication for one particular user on a system. I checked user home and .ssh directories permissions, and it's good (drwx------. both, the same as for other users that can ...
2
votes
2answers
125 views

Generating SSH Keys on the Server

I have set up sshd on a Linux server and managed to log in via keys generated using ssh-keygen. However, I have made the following observation: When I generate the key pair on the client and copy the ...
2
votes
1answer
1k views

Exclude specific group/users from ForceCommand in OpenSSH ssd_config

I want to make ForceCommand internal-sftp and ChrootDirectory /jail the default for all users accessing a server via SSH. Only users in a certain group are allowed to escape this. How can I exclude a ...
2
votes
1answer
661 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 ...
2
votes
1answer
31 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 ...
2
votes
2answers
182 views

sftp://domainnaame.tld shows whole filesystem

I have a home web server using SSH on a custom port. I've found that if I go to sftp://domainname.tld:port my whole filesystem is visible, and anybody can download any file. I'd like to chroot this to ...
2
votes
1answer
168 views

Why am I prompted for a password when using SSH to connect to another server?

I installed a fresh copy of CentOS 6.4 on two boxes, and Im trying to setup password-less SSH from server1 to server2. On server 1, I generated a key with ssh-keygen, transferred it to server2, put ...
2
votes
1answer
1k views

SSHD on Windows8 won't start: System error 1068 has occurred

I just installed cygwin and ssh-host-config -y on two new laptops running Windows8-Home. On one of them, sshd starts, on the other it doesn't: C:\> net start sshd System error 1068 has occurred. ...
2
votes
1answer
2k views

How do I find out the type of http proxy server I'm tunneling through?

Following standard online directions, I set up an ssh tunnel at home using putty to access private web pages accessible only on my work network. Fortunately, this just worked; when I sshed into a ...
2
votes
1answer
144 views

libssh2 - Agent Forwarding not working

I am using libssh2 library to ssh connections in my mobile application. Here I want to use Agent Forwarding support. I have followed same procedure as they have provided in example here LibSSH2 Agent ...
2
votes
3answers
834 views

SSH Private Key Authentication Failing

I'm kind of stuck here.. I am trying to disable all SSH login capabilities of root. No password login. No key-based login. Nothing. I have a user "andrew" that should only be able to SSH into my ...
2
votes
1answer
1k views

Can't setup SSH server on Cygwin

I had set this up a while ago on a different computer, but I can't get it running now. I've followed the directions at http://pigtail.net/LRP/printsrv/cygwin-sshd.html and I'm getting the following ...
2
votes
1answer
2k views

copssh RSA only authentication

I am trying to setup an RSA Authentication only SSH/SFTP server. The SSH will be used primarily for RDC. Everything works just fine if I use password authentication. I am using Putty Key Generator to ...
2
votes
0answers
105 views

sshd on cygwin: connection reset by peer

I installed inetutils on my cygwin this afternoon, and since then my sshd hasn't worked anymore. Here's the message from ssh client $ ssh localhost sh_exchange_identification: read: Connection reset ...
2
votes
1answer
2k views

ssh localhost password-less Login not working

I have been trying to ssh localhost into the same machine. I copied the generated public key into the authorized_keys file. It still doesn't work. I have spent hours on trying to find a solution to ...
2
votes
3answers
1k views

How can I determine if a client SSH connection has a tty associated with it?

Im writing a PAM module to handle authentication (server side - sshd) and I have to know if an ssh client is a tty (interactive) or not (non interactive). Does anyone have a clue?
1
vote
2answers
36 views

How can I make a one-shot sshd process?

I'm trying to find some invocation of sshd (OpenSSH on Ubuntu) that accepts only one connection, and then terminates the sshd process when that one connection closes. I see nothing in the sshd docs ...