Questions tagged [sshd]
sshd - OpenSSH SSH daemon
97
questions with no upvoted or accepted answers
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 ...
4
votes
0
answers
1k
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 - >> ~...
3
votes
0
answers
201
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:
&...
3
votes
0
answers
9k
views
SSH Tunnel can't connect through existing tunnel -- chanel3: open failed: administratively prohibited
I am following this tutorial
and I have gotten past the part where I create a tunnel from my local computer (Host B) to a remote computer (Host A) with
ssh -L 19922:HostA:22 HostA
however, when I ...
3
votes
1
answer
3k
views
ssh connections to Ubuntu are intermittent
I'm trying to use ssh to connect from a Mac to Ubuntu 12.04. I get "Connection reset by peer." Try again and I get "port 22: Connection refused." Keep trying and I get password prompt. Enter password ...
2
votes
0
answers
903
views
LVM over 1x SSD + 1x HDD
I am just wondering if somebody thought about this: in a system constellation with a SSD and a HDD would setting up a LVM that would include both generate something similar to a SSHD? Would the system ...
2
votes
0
answers
678
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 ...
2
votes
0
answers
264
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 ...
2
votes
0
answers
2k
views
Can't connect to my ssh server
I can't connect to my ssh server.
Data:
dpkg -l openssh-server
It's OK, there is the package.
I have ping with my router public address.
sudo ufw status
Output:
22 ALLOW ...
2
votes
1
answer
1k
views
what is u_dgr UNCONN when I run ss -lnp | grep sshd
I was running ss -lnp | grep sshd and received the following output (in addition to the LISTEN port(s) I was expecting. Not sure what this is tho:
u_dgr UNCONN 0 0 *78056 *12438 users:(("sshd",...
2
votes
0
answers
964
views
How to enforce LDAP group membership with libpam_ldap for SSHD
I am running 14.04 servers that I have install the ldap authentication package ldap-auth-client on and configured to connect to our LDAP servers. I have the authentication part working as well as the ...
2
votes
0
answers
675
views
sshd_config file is being overwritten on reboot
I need an AWS server to accept password authentication and whenever I remove the hash and set
PasswordAuthentication yes
After reboot or create image and launch a new instance, the # is added back ...
1
vote
0
answers
51
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&...
1
vote
0
answers
120
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
...
1
vote
0
answers
25
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
...
1
vote
0
answers
794
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
0
answers
180
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 (...
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
246
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 ...
1
vote
1
answer
149
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 ...
1
vote
0
answers
668
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: ...
1
vote
2
answers
173
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 ...
1
vote
0
answers
382
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 ...
1
vote
0
answers
180
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 ...
1
vote
0
answers
998
views
How to allow a remote user to connect over ssh on ubuntu 18.04
Before you yell me out, I already checked the answers on the web but couldn't install the system that I want correctly. Here is what I want:
Allow a remote user to connect (to my pc) over ssh and ...
1
vote
0
answers
2k
views
SSH - failed to release session
I have found the next line in the log on one of Ubuntu 18.04 server:
sshd[22190]: pam_systemd(sshd:session): Failed to release session: Interrupted system call
I can't find more description/solution ...
1
vote
0
answers
41
views
SSH session show à instead of @
I have Ubuntu VM (installed on esxi). I was trying to run a curl command over a ssh session:
curl -L https:// xyz.com/latest
After running above command my ssh session started showing as below:
...
1
vote
0
answers
537
views
Ubuntu Bionic server not responding to ping/SSH
Things I've tried.
I checked and verified the server can connect outside by pinging my WiFi router and desktop. No issues there. As another test, I installed a package via apt.
I checked and verified ...
1
vote
0
answers
2k
views
How to uninstall built in OpenSSH (7.2)?
I would like to ask for your assistance. I have compiled OpenSSH 7.9:
sshd -V shows:
OpenSSH_7.9p1, OpenSSL 1.1.1b 26 Feb 2019
BUT still the built-in one is in service, and I don't know how to get ...
1
vote
2
answers
2k
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 ...
1
vote
0
answers
80
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 ...
1
vote
0
answers
443
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 ...
1
vote
0
answers
169
views
Upgraded to 16.04 and now chjail ssh forwarding doesn't work
I've been doing tunneling of my web traffic for years now using the PuTTY -> Ubuntu server -> internet method for a while. (BTW, the article linked is not the article I specifically used WAY back in ...
1
vote
0
answers
45
views
Jails user in your home
I have VPS with many users, but i need jails user in your home.
Example:
User1 access
/home/user1/public_html
User2 access
/home/user2/public_html
Both can use SSH, but may not have access to /var/...
1
vote
1
answer
628
views
Still being Prompt for Password After enabling Public Keys
When I added my public key into my .ssh/user/authorized_keys file and I saved and restarted my server it gave me this error:
initctl: Unable to connect to system bus: Failed to connect to socket /var/...
1
vote
1
answer
755
views
Ubuntu 14.04 not showing login info - motd
I have a server ubuntu 14.04.03 setup inside a data-center and one on a virtual machine. Unfortunatelly the one in the data-center only shows this info after login:
ssh fx1
Welcome to Ubuntu 14.04.3 ...
1
vote
0
answers
4k
views
Why do I have to set usePAM to 'no' to manage a ssh connection?
I have a system user named user1 (the main one). I've tried to set a ssh connection between a user named foreignuser and the main one (user1). For that, I've generated a couple of keys with ssh-keygen....
1
vote
1
answer
1k
views
How to get notified (run script) on every SSH connection?
I'm able to run a script automatically every time I log into my machine via SSH by placing a command in the /etc/ssh/sshrc file. That works perfectly, however it's only triggered when I log in via ...
0
votes
0
answers
13
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:
[...
0
votes
1
answer
42
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
64
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
36
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
57
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]: ...
0
votes
0
answers
115
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 ...
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
0
answers
289
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
0
answers
197
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
62
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 ...