Questions tagged [sshd]
sshd - OpenSSH SSH daemon
228
questions
0
votes
0
answers
156
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
14
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
47
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
366
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
40
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
78
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
357
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
160
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 ...
7
votes
1
answer
616
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
120
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
54
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
79
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 ...
0
votes
0
answers
48
views
What does -t do in the sshd daemon?
I had a bug where sshd would not honor sshd_config, so sshd would listen on the default address and port, instead of the port and listen address I wrote in /etc/ssh/sshd_config. After a few days of ...
-1
votes
1
answer
197
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
547
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
3k
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
153
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
99
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
117
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
129
views
Ubuntu 22.04 Server on Raspberry Pi - how to install regenerate_ssh_host_key.service
I have created a custom image of "ROS2 Humble Hawksbill on Ubuntu 22.04 Server LTS (64-bit) for the GoPiGo3 robot" but cannot ssh into the first boot. It boots fine, connects to WiFi, but ...
0
votes
0
answers
111
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
1k
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
151
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
54
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
878
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
115
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
639
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
115
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
2k
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
16k
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
422
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
109
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
7k
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
156
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
217
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?
...
3
votes
0
answers
2k
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
331
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
123
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 ...
0
votes
0
answers
124
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
5k
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 ...
1
vote
1
answer
2k
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 ...
1
vote
0
answers
216
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 ...
0
votes
1
answer
287
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 [email protected]
This allows me to connect from local server to the remote server, through port 8789, like so : ssh -p 8789 ...
0
votes
1
answer
1k
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, ...
5
votes
4
answers
6k
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 ...
0
votes
1
answer
409
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-...
0
votes
1
answer
995
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 roo[email protected]
Then I get the following error:
...
0
votes
1
answer
4k
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
-...