Skip to main content

Questions tagged [sshd]

sshd - OpenSSH SSH daemon

Filter by
Sorted by
Tagged with
2 votes
1 answer
104 views

Why is "50-cloud-init.conf" created?

I was setting up an ubuntu server and, like 99% of all people, one of the first things I do is to disable password authentication in favor of keys. On other distros and in other times this is done by ...
Angelo's user avatar
  • 819
1 vote
1 answer
64 views

How do you check the validity of an sshd_config file?

sshd has a -t (or -T) option: -t Test mode. Only check the validity of the configuration file and sanity of the keys. This is useful for updating sshd reliably as configuration options may ...
QF0's user avatar
  • 253
0 votes
0 answers
66 views

ssh Match LocalAddress with ssh.socket doesn't work

On a new Ubuntu install I noticed that SSH uses sockets to start its daemon on demand. I've configured /etc/systemd/system/ssh.socket.d/port.conf, on the server, to listen on two ports as follows: [...
Felipe's user avatar
  • 1,049
-1 votes
1 answer
306 views

SSH Permission denied (publickey) on Password login

I am getting a very strange behavior... I am running an Ubuntu 22.04 on a newly created oci instance (arm) I've just created the instance a few minutes ago, i did no changes and i try to setup ...
Andrei's user avatar
  • 29
2 votes
1 answer
888 views

SSH freezing moments after successfully connecting, then Broken Pipe

Sorry to ask about a topic that's been done to death, but I haven't found what I need yet. I've set up a lambda machine with an SSH server. I can connect to it from my laptop with ssh -l <username&...
Pavel Komarov's user avatar
0 votes
1 answer
72 views

sshd LogLevel not working

there Someday, my ubuntu(22.04) machine write auth.log too short. Following auth.log can't recognize from fail2ban(sshd) Mar 6 17:52:03 laphs sshd[13792]: pam_unix(sshd:auth): check pass; user ...
booraik's user avatar
1 vote
0 answers
919 views

Ubuntu SSH 23.10 SSH issue (50-cloud-init.conf)? [duplicate]

I just installed Ubuntu server 23.10 yesterday. I downloaded the iso directly from ubuntu.com. Everything went fine during the install. For security reasons, I always disable password authentication, ...
coding4fun's user avatar
1 vote
1 answer
387 views

unmasking ListenAddress :: in sshd_config

what will happen if unmasking ListenAddress :: in sshd_config and restarting sshd service. Will I block myself out forever? Seems like I have done it.
lunar75's user avatar
  • 11
-1 votes
1 answer
206 views

root ssh acccess is disabled and sudo user can not make root changes on vps Ubuntu server

I first created a sudo user from root ssh by using below commands on my Ubuntu 22 server: adduser username usermod -aG sudo username Then, I disabled my Root login by going to nano /etc/ssh/...
Matt Z's user avatar
  • 1
0 votes
0 answers
79 views

My SSH keys no longer work

For some reason my VPS ignores/bypasses the passphrase for my pubic/private SSH keys and logs me in automatically, without the need for a passphrase or password. I haven't made any changes or even ...
Hawk007's user avatar
  • 159
0 votes
0 answers
48 views

Why does google chrome show the FILE CHOOSER on the CONSOLE even when DISPLAY X11 FORWARDING is on?

I have ssh'ed from machine1 to another machine (machine2) machine1:$ ssh -X user@machine2 machine2: gedit and I run gedit and I open the file chooser. Both gedit and the file chooser respect the ...
Ralph Yozzo's user avatar
0 votes
0 answers
72 views

SSH to ldap client hangs when ldap server is not reachable on ubuntu 20.04

I am using ubuntu 20.04 VM as ldap client and docker is my ldap server. When ldap server is not reachable ssh to ldap client vm gets hungs. Below are the auth logs Dec 18 07:02:40 tpvm22 sshd[24790]: ...
Shaik Musthafa's user avatar
1 vote
0 answers
222 views

Password Authentication Issue SSH - Cannot disable

I've just installed Ubuntu 22.04.3 LTS. Set up SSH as I have done for years. In /etc/ssh/ssh_config changed: PasswordAuthentication no PubkeyAuthentication yes ChallengeResponseAuthentication no ...
Flugan's user avatar
  • 11
0 votes
0 answers
167 views

sshd_config , added AllowGroups sshusers but users can still ssh

I changed /etc/ssh/sshd_config and added line AllowGroups sshusers but all users can still ssh. (I tried also AllowUsers and DenyUsers, but it seems that it is the same. The config is completely ...
Peter Pit's user avatar
0 votes
0 answers
2k views

Session closed for user root

I'm trying to use an old pc as server (ubuntu desktop LTS 22.04.02) and to connect from my new personal computer (ubuntu desktop LTS 22.04.02). The command ssh -Y me@the other ip address worked once ...
SO_32's user avatar
  • 187
1 vote
0 answers
30 views

sftp into chroot works fine, but debug messages reveil non-chroot authorized_keys absolute path

I have configured per-user chroot environments for SFTP to go into /somedir/jail/$user: snippet from my /etc/ssh/sshd_config: Match User myname AllowTcpForwarding no X11Forwarding no ...
rdelangh's user avatar
0 votes
1 answer
234 views

how to properly mask ssh server background service

I want to mask ssh so the ssh server is disabled till I need it myself. but still want to have ssh client capabilities. I use openssh and the service is ssh.service and its alias sshd.service I use ...
Usermaxn's user avatar
  • 207
1 vote
2 answers
951 views

a process started with sudo and put in background still exist after ssh disconnect

Here is the procedure I use: I'm connecting to Ubuntu 22.04 using ssh. I'm editing a file with vim (or emacs) using sudo I'm leaving the editor with Ctrl-Z Then, I close the ssh connection. Either I ...
AymericM's user avatar
  • 113
2 votes
1 answer
234 views

SSHd not acknowledging TCP connection from public IP address

I am trying to enable SSH access to my home server via SSH from a public IP address. But the SSH server is not responding to requests from a public IP address. Connections from a local IP work fine. I ...
DBear's user avatar
  • 241
0 votes
0 answers
131 views

ssh tunnel general process on a phone -used as vpn -user limitation failed

I'm using a couple of vm's as an ssh tunnel-vpn for both android and iOS, using ssh clients on both OS's. so now i want to limit the number of sessions per each user in order for each user is limited ...
Sandman Shiri's user avatar
0 votes
1 answer
1k views

connect using SSH to a remote server from client running ubuntu 22.04

I am trying to connect to a remote server using SSH from client running ubuntu 22.04 Server is a cloud instance of OVH ISP, running ubuntu 23.04. In OVH doc, it is mentioned: "You can only store ...
M. Page's user avatar
  • 123
0 votes
1 answer
170k views

Mikrotik SSHD error: connect to host 9x.xxx.xxx.xxx port 7346: Operation timed out

I changed the router for my dedicated server from TP-Link to MikroTIK and upgraded router os to 7.8, the configuration on the host machine itself did not change, only the router was changed: I opened ...
Riven's user avatar
  • 21
8 votes
1 answer
1k views

journalctl -u sshd.service command returns 'no entries'

I am currently working on Ubuntu 20.04 machine. When I am running the command journalctl -u sshd.service, I am getting the below response. -- Logs begin at Wed 2022-12-21 13:01:52 UTC, end at Fri 2023-...
Alakananda S's user avatar
0 votes
0 answers
287 views

How do I setup ssh to prompt the user for more than 6 login attempts? I try to set it higher than 6 but it still stops at 6

I'm on ubuntu 22.04 LTS https://manpages.ubuntu.com/manpages/impish/en/man5/sshd_config.5.html MaxAuthTries is set at 16 but it still only prompts six times, I've tried it setting it higher but when I ...
neal wang's user avatar
0 votes
1 answer
65 views

Why is one of my machines refusing to accept ssh into the root account?

I have a cluster of 7 machines. All run Linux; 5 of them running Xubuntu 20.04.5, including all three I'll mention here. All have a root account and one user account. I am the only actual user; this ...
ForDummies's user avatar
0 votes
0 answers
105 views

Why I am not able to connect Ubuntu server with SSH key?

I have Ubuntu server 22.4 and I it had SSH server installed. Time to time SSH connection was doping even while I was working. I update the SSH by using command sudo apt-get update ssh. After the ...
LoverBoy3694's user avatar
-1 votes
1 answer
329 views

blocking bot attacks ufw fail2ban

Im doing something dumb, or missing something. Can anyone spot it please? I have a tplink archer C7 set to port forward from an external port to port 22 on my internal server for ssh. But I still see ...
colic's user avatar
  • 21
0 votes
1 answer
1k views

issue sshd_config / systemctl restart

one of my workstation (previously it was a 22.04.1 server edition but according to NUC compatibility list last BIOS and dbx EUFI Database uggrade force me to downgrade to workstation as Server edition ...
Fred L.'s user avatar
  • 19
0 votes
0 answers
5k views

Can’t change SSH port

I can’t change the port from 22 for openssh. I’m using /etc/ssh/sshd_config. The line hasn’t been commented out. I’ve restarted the service. But no matter what I do when I check with service ssh ...
Brandon OFTO's user avatar
0 votes
1 answer
329 views

SSH from local machine to remote VM not working

I'm new to SSH and I've successfully SSHed from local machine to local VM now I'm trying to SSH into a VM which is hosted by a remote machine. Here's the error: vm@vm1-VirtualBox:~$ ssh my_local_name@...
Fixel's user avatar
  • 23
26 votes
6 answers
29k views

SSH default port not changing (Ubuntu 22.10)

I am on Ubuntu 22.10 and I cannot change SSH default port. I have tried the following: Edited /etc/ssh/sshd_config, left the default #Port 22 line but added Port 1234 below it. Then added allow rule ...
Silently's user avatar
  • 743
0 votes
0 answers
199 views

Allow specific IPv6 user to SSH into your server

I have these settings in one of my servers. Port 923 PermitRootLogin no PasswordAuthentication no ChallengeResponseAuthentication no UsePAM yes X11Forwarding yes PrintMotd no AcceptEnv LANG LC_* ...
code-8's user avatar
  • 195
0 votes
0 answers
143 views

What is causing ubuntu 20.04.5 to become inaccessible via SSH?

For a long time I ran Ubuntu 16LTS as my home server. After setting up a new server with Ubuntu 20 there are times where I simply cannot access the server via SSH. As far as I can tell, the system has ...
user2005218's user avatar
0 votes
0 answers
128 views

SSH Connectivity Issue

Why does the ssh client stop connecting to servers either right after reboot or few minutes after reboot? The screenshot I found this in both ubuntu 20 as well as ubuntu 22. My server is working fine ...
saikat sadhukha's user avatar
1 vote
1 answer
3k views

sshd AllowUsers + AllowGroups

Background: We have about 500 linux (Ununtu 20.04) resources deployed for the users. We are using sssd for authentication and ID provider is AD. We allow each user to ssh to only their system by ...
Kevin's user avatar
  • 11
0 votes
1 answer
317 views

Is it possible to attach ssh-add / ssh-agent to an existing pid

I am trying to set up some clients ready for one server to ssh to each of them. I have created a service for the ssh-agent on server. From systemctl --user status ssh-agent.service I can see a pid: ● ...
Chris G.'s user avatar
  • 213
0 votes
1 answer
74 views

How to Install Ubuntu on hybrid drive, if windows is already there In my hdd

The thing is I want only ubuntu on my pc, my hdd had windows already Installed I have brought new ssd, now my question is 1. How to format hdd which contain windows 10 2. How to install Ubuntu on my ...
ATHARVA KAWALE's user avatar
0 votes
0 answers
1k views

"Wrong password" error on ssh server remotely

I am running an SSH server on my local machine and I am able to perfectly login and modify files if I use something like [email protected] and type my password. However, when I try to login from ...
Miguel Rodriguez's user avatar
1 vote
0 answers
166 views

After upgrade to Ubuntu 22.04, getting ssh Permission denied (publickey) error [duplicate]

Immediately following my upgrade to Ubuntu 22.04 from 21.10, I can no longer connect to Google Cloud Platform via ssh and am receiving the following error (e.g. after running git clone): [email protected]@...
Adam Smith's user avatar
0 votes
1 answer
2k 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 ...
Daniel Hansson's user avatar
1 vote
0 answers
840 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 ...
Pete Cooper's user avatar
1 vote
0 answers
144 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 ...
Flux's user avatar
  • 505
1 vote
1 answer
4k 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....
Manuel Jordan's user avatar
4 votes
1 answer
26k 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 ...
RC-'s user avatar
  • 155
0 votes
1 answer
507 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 ...
Federico Gentile's user avatar
1 vote
0 answers
231 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 (...
koko's user avatar
  • 111
0 votes
1 answer
11k 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 ...
JSONMagic's user avatar
0 votes
0 answers
172 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 ...
WRJ's user avatar
  • 1
0 votes
1 answer
321 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? ...
FedKad's user avatar
  • 11.2k
5 votes
0 answers
3k 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 ...
FedKad's user avatar
  • 11.2k

1
2 3 4 5