Questions tagged [sshd]
sshd - OpenSSH SSH daemon
236
questions
0
votes
0
answers
23
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&...
0
votes
1
answer
37
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 ...
0
votes
0
answers
131
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, ...
-1
votes
0
answers
55
views
Sealing Ubuntu 22.04 as VM template - Linux alternative to sysprep
I'm currently working on setting up an Ubuntu 22.04 Server VM which I will seal and convert into a template. I've gone through most of the preperation, such as cleaning out logs, resetting host name ...
1
vote
1
answer
132
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.
-1
votes
1
answer
88
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/...
0
votes
0
answers
63
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 ...
0
votes
0
answers
32
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 ...
0
votes
0
answers
54
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]: ...
1
vote
0
answers
105
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
...
0
votes
0
answers
107
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 ...
0
votes
0
answers
1k
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 ...
1
vote
0
answers
24
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
...
0
votes
1
answer
148
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 ...
1
vote
2
answers
814
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 ...
1
vote
1
answer
135
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 ...
0
votes
0
answers
122
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 ...
0
votes
1
answer
924
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 ...
0
votes
0
answers
287
views
limit concurrent ssh-d connection per user via VPN client apps
I have a VPS (OS is Ubuntu 22.04) and added 2 users (user1 & user2) to this server.
Each of these users connects to the server with "SSH-Direct" protocol in vpn client apps like ...
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 ...
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-...
0
votes
0
answers
183
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 ...
0
votes
1
answer
61
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 ...
0
votes
0
answers
93
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 ...
-1
votes
1
answer
267
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 ...
0
votes
1
answer
856
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 ...
0
votes
0
answers
4k
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 ...
0
votes
1
answer
264
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@...
0
votes
0
answers
144
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_*
...
0
votes
0
answers
132
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 ...
0
votes
0
answers
123
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 ...
1
vote
1
answer
2k
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 ...
0
votes
1
answer
259
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:
● ...
0
votes
1
answer
68
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 ...
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 ...
1
vote
0
answers
131
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]@...
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 ...
1
vote
0
answers
781
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 ...
1
vote
0
answers
134
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 ...
1
vote
1
answer
3k
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....
4
votes
1
answer
22k
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 ...
0
votes
1
answer
488
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 ...
1
vote
0
answers
176
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 (...
0
votes
1
answer
10k
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
...
0
votes
0
answers
165
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 ...
0
votes
1
answer
276
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?
...
4
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 ...
0
votes
0
answers
361
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 ...
0
votes
0
answers
141
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 ...
1
vote
3
answers
6k
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 ...