sshd - OpenSSH SSH daemon

learn more… | top users | synonyms

45
votes
3answers
91k views

What does 'without password' mean in sshd_config file?

I just installed Ubuntu 14.04 on my server and I was setting up all my config files when I came across this in my sshd_config file: # Authentication: LoginGraceTime 120 PermitRootLogin ...
15
votes
4answers
27k views

How do I force SSH to only allow uses with a key to log in?

I tried following the instructions here: http://lani78.wordpress.com/2008/08/08/generate-a-ssh-key-and-disable-password-authentication-on-ubuntu-server/ to only allow users with a public key on the ...
14
votes
2answers
25k views

Unable to start sshd

I'm new to Ubuntu and trying to start sshd but having a lot of problems. I've tried uninstalling and reinstalling ssh by running sudo apt-get remove openssh-client openssh-server and sudo apt-get ...
13
votes
7answers
22k views

How do I disable SSHD from starting automatically?

After installing openssh-server, the server start every time I boot. If I want it to be manual what do I need to do? In version 0.6.7+ of upstart I would add a "manual" stanza to the job file. 10.04 ...
9
votes
1answer
3k views

How to remove legal notice from MOTD / Banner for non-root users

Problem: The following text is shown for all non-root users when logging in via SSH: The programs included with the Ubuntu system are free software; the exact distribution terms for each ...
8
votes
2answers
1k views

SSH Process not Killed on Remote Machine when the Remote System Unexpectedly Disconnects

I have a question to which I haven't been able to find an answer. I have two computers, both of which run Ubuntu 12.04. I keep one of my computers at home and use SSH to connect to it from the other ...
7
votes
4answers
2k views

Cannot SSH from outside LAN despite port forwarding seems fine

Running Ubuntu 12.04, I've set up the OpenSSH server. I can connect from within LAN, but not from outside. I am using the same sshd_config file as on my other Ubuntu 12.04 machines (that sit in a ...
6
votes
2answers
32k views

Granting a sftp user access to a /var/www directory

I've created a user and made his home directory /var/www/mysite/ftpdir I've also added a Match user entry for this user in sshd_config with a ChrootDirectory that points to /var/www/mysite I've ...
6
votes
1answer
1k views

SSH remote user need to be logged in?

I'm trying to set up an SSH server. I put my public key in the authorized_keys file, made sure the permissions were correct, etc. When I restart the server (really just Ubuntu 12.04 desktop) and I ...
5
votes
3answers
23k views

SSH public key authentication doesn't work

I'm having trouble setting up public key authentication for an SSH server on Ubuntu Server 12.04 (A) for authentication from an Ubuntu Server 13.04 (B). What I'm doing now (I'm trying to follow the ...
5
votes
4answers
47k views

ssh: connect to host 192.168.1.7 port 22: Connection refused

I get this error when ever I try to connect my desktop with another desktop using SSH, but I'm able to ping the other desktop successfully. ssh: connect to host 192.168.1.7 port 22: Connection ...
4
votes
3answers
11k views

tail: inotify cannot be used, reverting to polling: Too many open files

When I try to tail -f catalina.out, I get the error: tail: inotify cannot be used, reverting to polling: Too many open files I tried the answer in this post: Too many open files - how to find the ...
4
votes
2answers
5k views

ssh refusing all connections after upgrade to 11.10

I upgraded from 11.04 to 11.10 and upon completion found that I could no longer ssh into other computers that I routinely do so. There are several things I've checked: Kerberos authentication is ...
4
votes
2answers
2k views

ssh server does not start on lubuntu live image

I installed the lubuntu 13.10 32bit iso image with usb-creator-gtk on a USB stick and assigned 2GB of persistent storage to it. That's for a thin client, which does not have any storage of itself at ...
4
votes
4answers
3k views

SSH connections dropping after two or so lines

I'm actually having a bit of an odd problem. I'm running Ubuntu Server 12.04, with a minimal set of packages: The base system, sshd, and an IRC server. I must allow someone else to configure the ...
3
votes
1answer
1k views

What does %h mean in SSHD configuration?

I'm setting up OpenSSH on a server and I've created my keys on my client, but I don't know where I'm supposed to put the public key on the host. I understand it needs to be added to the ...
3
votes
3answers
3k views

SSH from external network refused

I've installed open-ssh-server on my home computer(running Lubuntu 12.04.1) in order to connect to it from school. This is how I've set up the sshd_config file: # Package generated configuration file ...
3
votes
2answers
4k views

ssh hangs for ~15 seconds before connecting

If I directly connect to Server A, using public key auth from my computer, it takes <0.5 s. But if run the same ssh command from Server B (to connect to Server A) it freezes for about 15 s at the ...
3
votes
2answers
709 views

How to disable autostart of SSHD in Ubuntu 15.04

In older versions of Ubuntu I commented out the "start on ..." line in /etc/init/ssh.conf. This worked well, but not in Ubuntu 15.04.
3
votes
1answer
5k views

12.04 sshd_config file is empty, but my ssh_config is not empty

Please know I am no sysadmin. Yesterday I re-installed UBUNTU 12.04 LTS - running 3.2.0-33-generic-pae. I have worked for hours trying to install vsftpd to no avail, and now find myself trying to ...
3
votes
1answer
734 views

Can't set up public key ssh authentication

I have a fresh install of Ubuntu 12.04. I'm trying to setup ssh public key authentication. Unfortunately, it refuses to work. Running the ssh client in verbose mode I can see that the public keys are ...
3
votes
1answer
264 views

2 sshd configurations 1 for internal and 1 external

How can I setup open ssh server so that if i'm ssh'ng from a local lan I want it to be via port 22 but if I'm coming externally its via port 12345 for example. Then for external access I'd like some ...
3
votes
2answers
6k views

How to configure pam.d files for ldap over ssh on 12.04?

I'm trying to set up an Ubuntu 12.04 server so that users with a valid account in a remote ldap server can login to the ubuntu server. I've followed this guide closely: ...
2
votes
1answer
623 views

How to give restricted access to user

I have a home PC and I created a reverse port forwarding to a server. Now I would like to go access to some people to the Home PC through this server. I would like to control the access of the user on ...
2
votes
2answers
107 views

Ubuntu on SSHD Drive with Windows 7 VM

I'm tottaly new to Ubuntu. Only played with it in the last few days while I waited for the new drive to come (LiveUSB persistent) I'm really impressed with it (and sick of Windows' sluggishness) and ...
2
votes
2answers
9k views

Why is PermitRootLogin in sshd_config set to yes by default?

As Ubuntu has no real root account, why is /etc/ssh/sshd_config allowing remote root login anyway? Isn't that inconsistent?
2
votes
1answer
2k views

How do I check that a configuration file has been read?

It seems that modifications to my /etc/ssh/sshd_config file are not picked up by the SSH daemon. For test purposes, I included a DenyUsers *, did service ssh restart, and even rebooted the whole ...
2
votes
2answers
80 views

Ubuntu Server installation on SSHD [closed]

Is it a good procedure to install Ubuntu Server 14.10 on an SSHD (8 GB SSD + 2 TB HDD)? Or perhaps it is better to install the OS on an SSD and mount an HDD for data storage?
2
votes
1answer
599 views

Why does ssh(d) seems to use OpenSSL heartbleed version?

It is commonly known that the heartbleed bug exists in the OpenSSL versions 1.0.1 through 1.0.1f (inclusive). So why are ssh and sshd compiled with OpenSSL 1.0.1, where the bug exists (12.04 -> ...
2
votes
1answer
1k views

Fail2Ban Regex SSH Will not Match Auth.Log - Searched Everywhere for a Solution

Im trying to get Fail2Ban to work with the SSHD Config provided. When i run fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf The Output is as follows ...
2
votes
1answer
68 views

Connecting remotely from Ubuntu to another linux

I want to connect remotely from Ubuntu to Suse. Two different systems in two different locations. I know how to use ssh to connect remotely to a machine in the same network. But, I do not know how to ...
2
votes
1answer
648 views

Unable to ssh to machine. Outbound ssh works. sshd is running on port 22

I have an Ubuntu 12.10 machine on my LAN to which all ssh connections time out. Let's call it 'F' (for fail!) Two other machines 'A' and 'B' on the same LAN can connect to each other. I can also ssh ...
2
votes
2answers
5k views

create log file just for ssh

I use ubuntu 10.04, contained ssh. I want to create a log file that stores all the activity on ssh (only ssh). Like in /var/log/auth.log but only for ssh. Like /var/log/ssh.log. So, file ssh.log will ...
2
votes
1answer
668 views

SSH doesnt restart on reboot after upgrade to Ubuntu Vivid Vervet 15.04

I recently upgraded my server to Ubuntu Vivid Vervet 15.04 from 14.04.2 LTS The upgrade went fine, and I could SSH into the server no problem. It was only when I restarted the server (using restart ...
2
votes
1answer
637 views

ssh connections to Ubuntu are intermittent

I'm trying to use ssh to connect from a Mac to Ubuntu 12.04. I get "Connection reset by peer." Try again and I get "port 22: Connection refused." Keep trying and I get password prompt. Enter password ...
2
votes
0answers
186 views

How to enforce LDAP group membership with libpam_ldap for SSHD

I am running 14.04 servers that I have install the ldap authentication package ldap-auth-client on and configured to connect to our LDAP servers. I have the authentication part working as well as the ...
1
vote
2answers
9k views

sshd won't stop/start properly

I am running ubuntu 13.10 (fresh install). I have installed openssh-server. During the process of trying to troubleshoot a problem with logging in via ssh from another linux system (also running ...
1
vote
1answer
2k views

hpn-ssh on ubuntu server

What is the current status of hpn-ssh on ubuntu? It is not in the default repositories, as far as I can tell, but does anybody knows if there are any plans to add it (or decisions not to add it)?
1
vote
2answers
5k views

sshd daemon not running ubuntu 12.04

The sshd daemon is not running on my machine (Ubuntu 12.04). I have repeatedly re-installed the openssh server and rebooted. I get no output to this command: ps -A | grep sshd Any help would be ...
1
vote
2answers
9k views

Disable automatic starting of sshd? [duplicate]

Possible Duplicate: How do I disable SSH from starting automatically? Simple question here; what's the correct way to stop the sshd service from starting when the OS boots ? I'm not sure ...
1
vote
2answers
5k views

How to debug sshd not running at startup on server

I have a (virtual) server running an Ubuntu 10.04 minimal system. I seem to have misconfigured sshd so that it does not start up on reboot. Since this is a server, I now do not have shell access to my ...
1
vote
4answers
54 views

sshd_config failure, is there a fallback?

So.. I decided to act like a complete moron and changed the Port to 81234 (which i now realize is higher than 65535), thus I can not login to my SSH anymore. Is there any kind of fallback or default ...
1
vote
1answer
251 views

sshd: Could not load host key

Running /usr/sbin/sshd produces the following results: Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Could not load host key: ...
1
vote
1answer
439 views

SOCKS proxy to SSH server behind HTTP proxy

I set up a SOCKS proxy at port 9090 to computer B elsewhere: ssh -D localhost:9090 user@B and configured it in my local Google Chrome browser. However, computer B is behind an HTTP proxy, so HTTP ...
1
vote
1answer
76 views

What to do so that issue.net shows readable banner characters to chinese russian french ssh users

I set up my ssh server and added custom issue.net config. when loggin, it shows \320\237\320\264\321.... for characters other than ascii-7 Is it a client side issue or do I manage this at server ...
1
vote
1answer
3k views

ssh not accepting public key

I recently installed ubuntu 10.04 and trying to connect to remote servers with SSH, which is failing to connect with public key. I created the DSA keys, then did a ssh-copy-id to the remote server ...
1
vote
1answer
68 views

Ubuntu 14.04 not showing login info - motd

I have a server ubuntu 14.04.03 setup inside a data-center and one on a virtual machine. Unfortunatelly the one in the data-center only shows this info after login: ssh fx1 Welcome to Ubuntu 14.04.3 ...
1
vote
0answers
248 views

Why do I have to set usePAM to 'no' to manage a ssh connection?

I have a system user named user1 (the main one). I've tried to set a ssh connection between a user named foreignuser and the main one (user1). For that, I've generated a couple of keys with ...
1
vote
1answer
135 views

How to get notified (run script) on every SSH connection?

I'm able to run a script automatically every time I log into my machine via SSH by placing a command in the /etc/ssh/sshrc file. That works perfectly, however it's only triggered when I log in via ...
1
vote
0answers
210 views

After moving home directory, ssh configuration is not working

I moved my home directory from /home/user to /media/newDrive/home/user. Everything seems to be working at first, except my ssh configuration. I was able to log into this machine from my laptop with ...