sshd - OpenSSH SSH daemon

learn more… | top users | synonyms

13
votes
2answers
19k 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 ...
9
votes
1answer
14k 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 ...
8
votes
1answer
1k 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 ...
7
votes
2answers
921 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
260 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
1answer
17k 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 ...
5
votes
2answers
6k 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 ...
5
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 ...
4
votes
3answers
6k 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
877 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
2k 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
2answers
3k 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
3answers
1k 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
1answer
3k 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
696 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
2answers
5k 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
2answers
11k 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 ...
2
votes
1answer
560 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
52 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
1answer
930 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
3answers
22k 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 ...
2
votes
2answers
7k 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
199 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
52 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
127 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 ...
2
votes
1answer
460 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
1answer
3k 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
30 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 ...
1
vote
2answers
4k 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
1k 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
6k 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
4k 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
1answer
23 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
0answers
16 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
0answers
34 views

sshd_config file is being overwritten on reboot

I need an AWS server to accept password authentication and whenever I remove the hash and set PasswordAuthentication yes After reboot or create image and launch a new instance, the # is added back ...
1
vote
0answers
140 views

Upgraded ubuntu from 13 to 14.03; x11 through ssh is not working

how to enable x11 forwarding in ssh config or sshd config with respect to Ubuntu 14.03 Following is the error: PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not ...
1
vote
0answers
159 views

Why does ps -ef list 19 occurrences of sshd?

I have four VPSs with two vendors. Whereas the two VPSs of the first vendor that I have been with for a number of years list between 2 and 4 sshd, when I do a ps -ef, both VPSs of the second, new ...
1
vote
1answer
77 views

sshd activation on ubuntu system

I want to connect my work Desktop computer remotely from home. I have read that ssh is used to connect to remote/server machine. When I was reading I came to know that to connect to a remote ...
1
vote
1answer
151 views

Why is ssh X-Forwarding of browser not working for internal IP addresses?

I want to access my private Ubuntu server at home during lunch break at and from work. The problem was, that at work, the SSH port is blocked by the firewall (default setting). So I changed the ...
0
votes
1answer
27 views

Setup openssh to start when the computer boots

I have a headless server and I was wondering if it is possible to start openssh without logging in. It would start without the need for a password, so I wouldn't have to plug in a monitor every time I ...
0
votes
2answers
913 views

How to edit sshd_config remotely? A problem of incorrect permissions?

I am trying to remotely edit sshd_config file using WinSCP and putty. Unfortunately, I keep getting the following error- “Cannot overwrite remote file Press delete to delete the file and create a new ...
0
votes
1answer
1k views

Allow incoming connections from outside LAN

I have an openssh-server running on my computer. However, I'm not able to connect to it from outside my LAN. Connecting from within LAN is no problem at all, it works just as one would expect. ...
0
votes
1answer
106 views

Make sure that sshd will automatically start after reboot

I am connected to a computer over ssh. I have to reboot it remotely, while making sure that I will be able to reconnect to it over ssh just after reboot. I install 'bum' and marked sshd to be ...
0
votes
1answer
888 views

Problem Setting Up Local SSH Server

I am trying to setup one of my linux computers as an ssh server but I can't connect to it. I have openssh-server and openssh-client installed already on both computers (client and server). If I run ...
0
votes
1answer
65 views

I am not able to login to another laptop

I am using this command: userA :~$ sudo ssh userB@192.168.1.3 It says ssh: connect to host 192.168.1.3 port 22: connection refused. I want to login remote & this is not working. In a forum ...
0
votes
1answer
586 views

Changes to user's home directory not updating

I've just made changes to a user's home directory (using usermod -d) - but I'm still going to the old directory when I login (via sftp). Do I need to restart a user service to pick up these changes? ...
0
votes
2answers
42 views

Cannot SSH into Ubuntu14.04 Server Remotely

So I am able to SSH onto the server when connected to the same network, but I need to enable remote connection. When I enter ssh -v user@serverIP, I get the output: OpenSSH_5.6p1, OpenSSL 0.9.8y 5 ...
0
votes
0answers
31 views

making a custom last login line

I've been customizing my MOTD recently, and wanted to add a newline after the lastlogin line. However, I don't think this can be easily done since the lastlogin is printed by sshd. And according to ...
0
votes
0answers
24 views

Restrict Direct User Login with SSH but Allow SSH Access from Single User

I have a user (a) whose direct login must be restricted except for when user is ssh'd from a particular user (b). For all other users direct login must be restricted. Is there any way to accomplish ...