Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sshd]

sshd - OpenSSH SSH daemon

-1
votes
0answers
49 views

I would like to update OpenSSH to version 7.8 but I can't find how to do that

I tried to do what was written in this gist https://gist.github.com/techgaun/df6...82c4c3470bc48e changing the following line wget " http://mirrors.evowise.com/pub/OpenBSD/OpenSSH/portable/openssh-7....
0
votes
0answers
31 views

Getting full logs of sshd failed connections

When I've queried status of my ssh server which has public ip, it states following: user@mypc:~$ sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/...
0
votes
1answer
64 views

sshd configuration to use SSH Keys

18.10 install. I'm asking about sshd_config (in /etc/ssh/) How do I permit/authenticate sshd keys? When I log in from another Ubuntu instance, password works fine. ssh-copy-id should have set up ...
0
votes
1answer
84 views

Ubuntu-budgie 18.04 agent refused operation when trying to ssh with public key

When I try to ssh using rsa key pair, I get the following error: debug1: Next authentication method: publickey debug1: Offering public key: RSA SHA256:2zjgjRVRDdbdfmjqip0o7M5vGXRmdH1vIvT88rrF3yE /home/...
0
votes
0answers
236 views

How to change sshd port on 18.04 Server?

I thought it would be easy, but that does not seems to be the case. I'd like to change the port that SSHD (SSH daemon) is listening on. So I simply changed the entry in /etc/ssh/sshd_config that ...
0
votes
0answers
28 views

Can ssh local but cannot from other computeres

My desktop is a Linux (Ubuntu) machine with ssh server configured. It used to work fine before I moved the desktop to a new network. Now I can ssh into the machine from itself (either by ssh localhost ...
0
votes
0answers
14 views

Custom SSHD service under no privileged user

Is there a way to run a custom (as in custom config) sshd service on another port as an unprivileged user?
0
votes
0answers
58 views

Slow connection with multiple IP alias on Ubuntu 18.04

On my home server, when I configure multiple IP alias on Ubuntu 18.04 using netplan my SSH connection becomes really slow. Here's my customized /etc/netplan/50-cloud-init.yml: network: ethernets: ...
0
votes
2answers
199 views

Can't ssh remotely, but can locally, after installing desktop on remote server

I installed LXQT on my Digital Ocean Ubuntu 18.04 VM. Afterward, I could not ssh in remotely. I tried restarting the ssh service using the DO console. That did not work. So I completely uninstalled ...
0
votes
0answers
22 views

ssh from LAN not displaying motd

I have a server running 16.04.5 as a guest VM. The machine is accessible via SSH from both the WAN and the LAN. I have set up two sshd configs: one listening on the LAN interface and and other on the ...
3
votes
1answer
665 views

Found a lot of SSH login attempts in auth.log [duplicate]

I'm running my own DigitalOcean Droplet on Ubuntu. Today, I found that my SFTP connection to said Droplet was a little laggy when doing work on it, so I checked /var/log/auth.log files to see what was ...
0
votes
1answer
467 views

sshd not listening on port 22 after upgrade to 18.04

Ever since I updated to the latest Ubuntu release (18.04) I am unable to ssh into the machine until I walk over to the console and wake up the machine by hitting a key on the keyboard or moving the ...
1
vote
0answers
37 views

How to use 2FA with cert based SSH auth?

I used this guide to enable Google TOTP auth on Ubuntu 16.04. SSH only allows cert based auth (PasswordAuthentication no) I set ChallengeResponseAuthentication yes and restarted the SSH service. I ...
0
votes
0answers
17 views

allow SSH access for a specific local user from only internal networks and deny SSH access to that user from External networks [duplicate]

I'm wondering if anyone has guidance on how to configure a Ubuntu 16.04.4 LTS server to allow SSH access for a specific local user from only internal networks and deny SSH access to that user from ...
1
vote
1answer
81 views

Enabling SSH on boot via config files

How can I configure ssh service to run on boot other than via shell? Is it through /etc/init/ssh.conf ? If that's the case, what parametters should I look for in it? The reason I can't do this ...
3
votes
2answers
344 views

sshd login get Permission denied (publickey). what am i doing wrong? [duplicate]

I am trying to login to an Ubuntu server from another Ubuntu machine via key. What I did on client: ssh-keygen -t rsa # generate ssh key And on the server /etc/ssh/sshd_config: # Package generated ...
1
vote
0answers
86 views

Granting X11 xauth permessions to a non sudoer

I have several non-sudoers on an Ubuntu machine that needs to access to X11 forwarding. However, I can't seem to find a workaround to pass X11 connection rejected because of wrong authentication error ...
4
votes
2answers
3k views

Key based SSH login that requires both key AND password

First of all Thanks to make and maintain ASK UBUNTU, I really get lots of help from here. My problem is : I developed successfully RSA Key based ssh login on board from system. when client login ...
0
votes
0answers
433 views

Ubuntu - Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

Facing a serious issue over here. Trying to debug from pretty long time but doesn't come out well. Looking for your help. I have Centos and Ubuntu VMs deployed in openstack. I am trying to login to ...
0
votes
0answers
26 views

server to server communication without password

I have two Ubuntu server and run a bash script over cron as root. When I wont to copy the result from server1 to server2, I have the problem that I get prompted for the root password. First problem, ...
-1
votes
1answer
599 views

I can't login to vps ubuntu after change ssh port

After changing the port from 22 to 2200 from /etc/ssh/sshd_config then I run : sudo service ssh restart I disabled the UFW and by check sudo service ssh status it's working and listing to port 2200 ...
0
votes
0answers
219 views

sshd compiled from openssh source doesn't work with /etc/init.d

I tried to compile sshd from source and replace it with Ubuntu 1604's default sshd. Grabbing source and compiling was no problem. apt source openssh-server cd openssh-7.2p2 ./configure make sudo ...
0
votes
0answers
417 views

Cannot ssh on boot until I login (Ubuntu 16.04) [duplicate]

I am able to ssh into my machine once I log in to it, but I am not able to ssh into it on boot without first logging in. The machine boots, and then it shows the login screen. I want to be able to ...
0
votes
2answers
988 views

Proper way to restart sshd and other daemons

How should one properly restart sshd or otherwise let it know that its configuration file has changed? Apparently sudo restart sshd is no longer the proper way to do this, as attempting to do so ...
2
votes
1answer
3k views

Installed SSH but no SSHD found

I'm following this tutorial. In the section on installing ssh in 16.04 I did: sudo apt-get install ssh I tested ssh with: which ssh It gave me a path indicating that it's working. But when I ...
1
vote
1answer
9k views

How to get the list of all users who can access a server via ssh?

How can I get the list of all the users who can ssh to a server via ssh username@server.domain ? Please note that I'm aware of this question and that is not doing what I want! If it helps the server ...
3
votes
1answer
251 views

X11 forwarding works only with sudo permission

I have an ubuntu 17.10 system(let's call it A). I want to use it from remote machines(B,C...). I have tried logging in from windows through putty and MobaXTerm and from other ubuntu machines through ...
0
votes
0answers
382 views

sshd Configuration Error

I have not touched ssh_config or sshd_config at all. I started up the virtual machine today, ran updates (sudo apt update/upgrade) and all the sudden I am no longer able to ssh into the virtual ...
2
votes
2answers
2k views

How to setup virtual users for sftp (sshd) with access to a specific sub directory?

I try to setup virtual users for sftp with sshd and/or pam. My folder structure looks like this: / |-- var | +-- www | +-- site1 | +-- folder_1 | +-- folder_2 | +-- ...
0
votes
0answers
102 views

SSH: key rejected

I set up an sshd passwordless server, and I got the following problem: If I log into my 16.04 box physically, I can, afterwards, log in on it via ssh. If I don't do it (e.g. remotely reboot my ...
-1
votes
1answer
3k views

Old SSH server version running after upgrade

We have an Ubuntu server running 16.04, which is used for a client website. The client has recently had a security audit done and one of the recommendations has been to update our OpenSSH version to ...
0
votes
0answers
301 views

Allow SSH access to a specific user if the IP matches one in a file

I need to allow SSH access to my server to user_a, from any IP address, and to user_b, only if the IP address is in a file - /etc/remote-hosts. Currently, in /etc/ssh/sshd_config, I have added: ...
0
votes
3answers
577 views

Can't ssh into a 14.04 fresh install

I have a fresh install of ubuntu 14.04 (latest version supported by the software we need) on a server. SSH is installed and SSHD is running per ps. I can ssh out just fine. At my workstation, I can ...
1
vote
1answer
6k views

ssh: Allow root to login without password [duplicate]

i want to login via ssh without password using root account. I have problem with /etc/ssh/sshd_config file. I set: PermitRootLogin without-password and StrctMode no but it doesn't work (i have to ...
0
votes
0answers
73 views

How to increase “screen buffer” when connected to the machine via SSH?

TLDR: I want to see a lot more of my screen via scrolling back when the command/script (e.g. ls -la /etc) displays results that doesn't fit in 1 screen. If you check the screenshot below, it doesn't ...
1
vote
1answer
765 views

ssh.service: Unit entered failed state

sshd starts, runs and works fine, but only once. If I try to log in on a second ssh terminal session I get rejected: ssh: connect to host dmz port 22: Network is unreachable And/or when I log out of ...
3
votes
0answers
394 views

Can I unlock a brand new user to SSH in without setting password?

I'm following these steps when setting up the user: $ sudo useradd periscope -m -s /bin/false $ sudo su -s /bin/bash periscope $ mkdir ~/.ssh $ # public key gets manually input here $ cat - >> ~...
0
votes
0answers
308 views

sshd, httpd and crond processes use high CPU in Ubuntu 14.04 Server

I have a production server with Ubuntu 14.04 OS. I am observing some suspicious behavior from sshd, HTTPd and crond. Suddenly these processes have started to use 100% of CPU. If I kill these ...
6
votes
1answer
6k views

Sshd_config still allowing password authentication

I have adapted my sshd_config file where I changed the value of: PasswordAuthentication no ChallengeResponseAuthentication no usePAM no ( now set to yes) Furthermore I have restarted the sshd ...
1
vote
0answers
79 views

how to log the ssh public key's label to auth.log

I was wondering if there was a way to log the label of an ssh public key to auth.log. I've given www-data only sftp access to the web directory, and use ssh keys to authorize a trusted user on my ...
1
vote
2answers
884 views

How can I stop ssh bots from trying to SSH in as root

I have the current solution, fail2ban and forbid SSH as root in the sshd configs. Its not as effective as I need in certain situations. Most particularly in gateway servers, that have limited memory ...
3
votes
2answers
575 views

SSH message after login, then restrict the user from using account

I want to "block/restrict" one of the accounts on my dedicated server, but I want user to allow to log in, then i want the message to pop up for him (for example in putty) and then close connection (...
1
vote
0answers
228 views

Can't connect CSGO-Server or SSH on my Ubuntu 16.10 VM

I've installed Ubuntu on Orcale VM VirtualBox. The internet connection is over NAT. I've tried to set it to Bridged Adapter, but then I don't have any access to internet on Ubuntu. I've installed ...
0
votes
0answers
108 views

Cannot connect via SSH, misconfiguration

I've been messing around with sshd_config and tried to add a script to run on login. Unfortunately, when I now attempt to login with SSH I receive bash: /etc/update-motd.d/99-custom-text: Permission ...
5
votes
1answer
13k views

Ubuntu 16.04 LTS sshd restart problem

I've choose Ubuntu 16.04 LTS as main OS on my production servers. It has the latest version of Linux kernel, frequent updates and seems to be stable. However 2 days I can not resolve the problem with ...
0
votes
2answers
3k views

how to login a remote host using SSH without a password?

SSH server is running at remote host. IP Address of the remote host is known. Using NMAP command we can see SSH service is running at port 22 which is open. How to login remote host using ssh client ...
3
votes
0answers
56 views

ssh connects but fails to complete unless I pass the -t option

I upgraded a headless system from 16.04 to 16.10 a few days ago. Now when I try to ssh to the system, it connects, logs me partially in, but then hangs before I get a command prompt. For example: &...
6
votes
1answer
87 views

Machine partly crashes when a network interface is unbound from DPDK

I'm using an Ubuntu 14.04.4 server, running sshd OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8, OpenSSL 1.0.1f 6 Jan 2014. The server is also running Intel's DPDK framework, to develop network software; part of ...
0
votes
0answers
1k views

How to setup Ubuntu 16.04 with multiple HDD's

I'm reinstalling Ubuntu 16.04 in my Box. I have a 128 gig ssd running the system from root. I also have two 500 gig hdd's and a 1tb hdd. I can't mount them all in the same place for some reason so I ...
20
votes
2answers
1k views

How to block specific username from ssh?

I have testuser and I want that user to be able log-in locally, but not via ssh. How can I implement that?