Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [sshd]

sshd - OpenSSH SSH daemon

Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

CLI needs sudo to be able to SSH

I have a strange error. I just installed Ubuntu 22.04 and copied over my SSH keys from the old installation (Ubuntu 20.04). Now suddenly I need sudo to be able to SSH to any machine - as long as it's ...
user avatar
0 votes
0 answers
50 views

Recent update causing SSH connections to "freeze"

On my ubuntu server running in the AWS cloud a process runs that transforms data received through a SSH connection from a client, and takes around 1 1/4 hours to execute. Up until a recent update the ...
user avatar
1 vote
0 answers
51 views

Change `sshd` log file with `rsyslog`

I want to change the location of sshd logging to an external volume in order to prevent filling up the boot volume. What I thought would work – create /etc/rsyslog.d/sshd.conf with a directive to use ...
user avatar
1 vote
0 answers
41 views

How to set up UFW port forwarding from non-privileged port to port 22 on the same computer

On my Ubuntu server, I am running an SSH server (port 22). I want to set up UFW such that all incoming connections are blocked, except through port 12345. External traffic arriving at port 12345 ...
user avatar
  • 425
0 votes
0 answers
91 views

SSHD: Fingerprint of public key not as expected

two machines are in the picture for my issue: Server: Running Ubuntu Server 20.04.3 LTS, running ssh server Client: Running Ubuntu Desktop 20.04.3 LTS, running ssh client I expect my generated ...
user avatar
1 vote
1 answer
605 views

How retrieve or recreate a delete file from the /etc/ssh directory

In the /etc/ssh directory exists the following content: moduli sshd_config ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key ssh_import_id ssh_config sshd_config....
user avatar
2 votes
1 answer
2k views

How to access home ssh server from outside via the Internet?

I am running ubuntu server 20.04 and out of the blue I am getting operation timeout. I was wondering how can I troubleshoot the issue. I am using ufw and the connection port is open. so when I use ...
user avatar
  • 53
0 votes
1 answer
190 views

Why am I able to SSH a remote machine even with the wrong keys?

Description: I have created a ssh connection between my Windows Pc and Raspberry Pi. To so I followed the following steps: Step 1: Somehow get the IP address of the Raspberry Pi. It should be ...
user avatar
1 vote
0 answers
76 views

SSH passwordless connetion from Ubuntu to Win10

I am trying to establish passwordless ssh connection from Ubuntu 20.04 to Win 10. I installed new Win10 (downloaded from Microsoft site, no activated). I downloaded openssh from git (...
user avatar
  • 111
0 votes
1 answer
2k views

Access denied by PAM account configuration despite configured access.conf and updated /etc/shadow

I've been setting up a PAM configuration for sshd, and as of now /etc/pam.d/sshd stands like this: # Custom PAM config for sshd # Disallow login if /etc/nologin exists, inherited from old sshd config ...
user avatar
0 votes
0 answers
104 views

Git push publickey permission denied to vm

Permission denied when trying to git push origin master from vs code files to my vm ubuntu server, already tried many editions on ssh_config and availablr tutorials, but no one worked, also couldnt ...
user avatar
  • 1
0 votes
1 answer
80 views

Configuring sshguard for more than one port

I am running sshd on more than one port, say 22 and 2222. I have installed sshguard to the system. How can I configure it to guard against attacks on all the ports defined in sshd's configuration? ...
user avatar
  • 6,486
0 votes
0 answers
578 views

sshd response "Exceeded MaxStartups" while connecting

We have a Google Cloud Platform (GCP) server that is open to world with ssh port 22. (I know that this is a bad idea, but fail2ban is running also on this server just for this reason.) Recently, the ...
user avatar
  • 6,486
0 votes
0 answers
126 views

Changing the default port without editing /etc/ssh/sshd_config

The standard way to change ports, of course, is to edit /etc/ssh/sshd_config. Since I'd really like to avoid messing with the vanilla ubuntu to the greatest extent possible,I'd prefer if it is ...
user avatar
  • 1,419
0 votes
0 answers
103 views

How to protect root user from root privileged custom user?

I have created a user named as username in my local network server and prevented all root access and password login to the server instead i use SSH authentication. I would like to know how to protect ...
user avatar
0 votes
0 answers
98 views

Need guidance to understand setup of SSHD password / pubkeyauthentication

I'm an average admin supporting my own systems, not getting paid to be a professional. I've setup many systems for SSH with passwords and with private keys. This one is weird. I don't necessarily want ...
user avatar
  • 157
1 vote
3 answers
1k views

ssh server service won't start on Ubuntu 18.04 after reboot

I've a VPS with Ubuntu 18.04Lts on Google Cloud. On every reboot, I've to start the ssh daemon service either by service ssh(d) start or systemctl start ssh(d) (both ssh and sshd work the similar way ...
user avatar
1 vote
1 answer
596 views

X11 Forwarding Display is always :0

I've been trying for a few hours now to get X11 forwarding working from a remote host. I know it used to work and the host was physically moved and has not worked since. I am unsure if that is ...
user avatar
  • 123
1 vote
0 answers
97 views

Remote SSH disabled after each reboot - Sharing

I have a desktop installation of Ubuntu 20.04 with X11. I have installed SSHD, and enabled Remote Login in the Sharing page of Settings in the Desktop. Then it works to SSH into the machine from a ...
user avatar
0 votes
1 answer
141 views

SSH tunneling IP filtering

I have created this tunnel on server 10.1.1.1: ssh -f -N -o -L 8789:10.2.2.2:22 user@10.2.2.2 This allows me to connect from local server to the remote server, through port 8789, like so : ssh -p 8789 ...
user avatar
  • 43
0 votes
1 answer
688 views

python sshclient hanging for the linux command [closed]

execution hanging for the second command and its works for simple linux commands like 'pwd', and 'ls' and so on, and any thought on this issue, from paramiko import SSHClient import paramiko, time, ...
user avatar
  • 9
5 votes
3 answers
2k views

ssh.service startup failure; port 22 already in use

Brand new ubuntu installation: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal ssh.service fails ...
user avatar
0 votes
1 answer
217 views

How setup reverse proxy for SSH server?

I have a VM with network interfaces, namely eth0, eth1, and eth2. All of these interfaces are connected to independent ISP routers which have globally static IP configured let's say Public-IP1, Public-...
user avatar
0 votes
1 answer
435 views

What does "Too many recursive configuration includes" mean when trying to connect to a ssh server?

The current problem is when I try to connect to a ssh server (from a university I am currently attending) with the following (example) command: ssh -Y root@example.com Then I get the following error: ...
user avatar
  • 1
0 votes
1 answer
804 views

Passwordless ssh config gives Server refused our key

The keys are correct and sshd is configured correctly (read all previous SO questions for this problem). Any ideas? Trying to connect from Windows with Kitty (improved PuTTy) Ubuntu Server 20.04 x64 -...
user avatar
  • 161
1 vote
1 answer
119 views

Ssh conection issue

I'm trying to establish a connection with Fermilab servers. For this I use both Kerberos protocol and ssh to connect my computer; however I only receive kerberos ticket and this message from terminal ...
user avatar
0 votes
0 answers
34 views

Failed to start OpenBSD Secure Shell on Reboot [duplicate]

During reboot: ● sshd.service - OpenBSD Secure Shell server Loaded: loaded (/etc/systemd/system/sshd.service; disabled; vendor preset: en Active: failed (Result: exit-code) since Thu 2020-10-01 ...
user avatar
  • 1
1 vote
1 answer
166 views

How to log off all user from ssh client in ssh server?

How to log off all user from ssh client in ssh server? not just a particular user, so that i don't have to log off one-by-one from ssh server.
user avatar
  • 413
1 vote
1 answer
2k views

Nordvpn causes some local services to malfunction from my Ubuntu Server 20.04 LTS

I have started to use a PC in my house as a server to learn and expand more my knowledge in the IT field. Currently running Ubuntu 20.04 LTS, at the moment being used for samba, minidlna, and local ...
user avatar
4 votes
1 answer
8k views

Set SSH idle timeout Ubuntu 20.04

I want incoming ssh-sessions to automatically disconnect upon inactivity for a security-critical server. I've set the following settings TCPKeepAlive no ClientAliveInterval 30 ClientAliveCountMax 0 ...
user avatar
1 vote
1 answer
9k views

SSH server listening on 0.0.0.0:22?

I have two machines in my home network and I want to connect them over SSH. The first machine has a local ip 192.168.1.23 and openssh remote client installed. The second has a local ip 192.168.1.169 ...
user avatar
  • 159
2 votes
1 answer
2k views

Unable to connect to basic ubuntu ssh server with password authentication - permission denied publickey

Title says it all. I followed this guide to the letter: https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-20-04/ However at the end I was unable to ssh to ubuntu - I get permission denied (...
user avatar
  • 121
1 vote
0 answers
560 views

Always being prompted for password upon ssh to server even after exchanging keys using ssh-copy-id command

The output of ssh -vvv username@server_ip debug2: reserved 0 debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ecdsa-sha2-nistp256 debug1: kex: server->client cipher: ...
user avatar
  • 11
1 vote
1 answer
329 views

Automate SSH client and server setup on every device

I don't think my needs are all that unique. I have a home network wired and wireless with multiple devices running Ubuntu 16.04.6 LTS. They will be upgraded to 20.04 soon though. My desire is to ...
user avatar
4 votes
1 answer
2k views

How do I configure sshguard in Ubuntu 20.04?

I have previously used sshguard successfully on Ubuntu 16.04 by simply installing the sshguard package. When I tried to do the same on 20.04, however, I discovered that it was only mostly working: ...
user avatar
  • 220
1 vote
2 answers
108 views

When cutting external power supply, I cannot ssh connect to my Ubuntu 20.04 desktop on Dell XPS 13 7390 laptop

I installed sshd in my Ubuntu 20.04 minimal desktop on Dell XPS 13 7390 laptop, through command sudo apt install ssh. And I used Xshell software on another physical machine in Windows 10 to SSH ...
user avatar
0 votes
1 answer
93 views

VX Connectbot connects to bionic sshd but not to focal sshd, why and what can i do?

Seems there's been a subtle shift in sshd such that now VX Connectbot no longer gets any response. is it a bug? a new feature? VX Connectbot (1.7.1-29 on android 6.0.1 G900PVPS3CQD1) can connect to ...
user avatar
2 votes
1 answer
944 views

Allow an active directory group to ssh into server

I'm trying to get my AD group SSH_Users to be able to SSH into our server. I added a line to the config file in /etc/sshd: AllowGroups ssh_Users and tried ssh_Users@domain.com. This does not work. I ...
user avatar
0 votes
1 answer
514 views

How to exclude someone when PubkeyAuthentication no in sshd_config

I want to set PubkeyAuthentication no in /etc/ssh/sshd_config, but someone should be excluded, i.e: John
user avatar
  • 103
1 vote
0 answers
295 views

Why is Ubuntu running relatively slowly on my machine?

So I run my Desktop with a dual boot of Windows 10 and Linux Mint 19.4, my desktop specs are: Motherboard: MSI X570 Gaming Carbon Pro Wifi System HD for Win10: Sabrent 4 1TB NvME SSD System HD for ...
user avatar
0 votes
0 answers
726 views

How to disable sudo privileges to a user in Linux Ubuntu?

I have created an ssh key-based user in my server. I want to disable all sudo privileges to that particular user. I have done the following; sudo deluser user sudo /usr/sbin/deluser: The user is ...
user avatar
1 vote
0 answers
107 views

Connect Multiple nodes for hadoop via ssh on ubuntu

We are trying to set-up a two-nodes hadoop clusters on two different machines. SSH to localhost without password have been setted up on both machines. And hadoop can run well as single node on each ...
user avatar
0 votes
1 answer
721 views

cannot ssh into server

[Resolved][Read the answer below] somehow pinging the IP Address resulting in Request timeout, it means there's an issue in the connection, between client and server endpoints. Credits to user68186 ...
user avatar
0 votes
0 answers
114 views

Can’t get ssh status?

I was following this to starting an ssh server on my ubuntu pi. I ran sudo systemctl status ssh, and I got the response (ellipses where un-useful stuff was): Loaded: loaded (... Active: failed (...
user avatar
1 vote
0 answers
3k views

Ubuntu Logs meaning Disconnected, Invalid user and etc. Server attack

Recently installed new server, my first one and almost immediately started to receiving following log, it seems that someone is trying to access my server. Could not find a detailed description about ...
user avatar
  • 111
0 votes
1 answer
3k views

Permission denied (publickey) -- Strange error

Thanks for looking! I need help with an issue that I am sure is trivial but it has me befuddled :-(. Let me start by saying I am not trying to establish public key/private key trust based password-...
user avatar
0 votes
1 answer
145 views

How to install Ubuntu 18.04 on 256GB on Solid State Drive and 2TB Solid State Hybrid Drive with replacing Windows 10 and partitioning?

I have a 256 GB solid state drive and a 2 TB solid state hybrid drive. I have seen references in some web sites where they came up with same question but I don't know with or without replacing Windows....
user avatar
0 votes
0 answers
92 views

Cannot SSH into server after sshd config change

I tried adding SFTP access to a second user in /etc/ssh/sshd_config Unfortunately I left a space between the usernames and later realized this might be the cause: Match User user1, user2 ...
user avatar
  • 1
0 votes
0 answers
142 views

Why does logwatch hang processing sshd on a fresh install of Ubuntu 18.04 server?

$ sudo logwatch --service sshd --debug 100 --output stdout ... TimeFilter: Period is day TimeFilter: SearchDate is (2019-10-13T..:..:..\.[0-9]+[+-][0-9]{2}:[0-9]{2} ) TimeFilter: Debug SearchDate is ...
user avatar
  • 1,271
0 votes
0 answers
163 views

Enabling ssh logs on ubuntu system

I want to enable ssh logs on my ubuntu system to monitor actions performed by any ssh connection. My first question is whether i can see these actions in ssh logs and if so then how can i start ssh ...
user avatar
  • 119

1
2 3 4 5