Questions tagged [sshd]
the secure shell (SSH) daemon
756 questions
743
votes
32
answers
1.4m
views
Why am I still getting a password prompt with ssh with public key authentication?
I'm working from the URL I found here:
http://web.archive.org/web/20160404025901/http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/
My ssh client is Ubuntu 64 bit 11....
123
votes
2
answers
170k
views
How does tcp-keepalive work in ssh?
I am trying to code a shell-script that uses a ssh-connection for doing "heartbeats". I want to terminate the client- and server-side of that connection after a certain timeout (after the connection ...
108
votes
2
answers
397k
views
How can I restart the SSH daemon on Ubuntu?
When I type in service sshd restart I get a sshd: unrecognized service error.
I do have, in /etc/ssh/ a file sshd_config that I use to set config. I can also putty into the Ubuntu box (it is remote).
...
105
votes
5
answers
281k
views
Where are my sshd logs?
I can't find my sshd logs in the standard places.
What I've tried:
Not in /var/log/auth.log
Not in /var/log/secure
Did a system search for 'auth.log' and found nothing
I've set /etc/ssh/sshd_config ...
73
votes
6
answers
306k
views
Limit SSH access to specific clients by IP address
How do we allow certain set of Private IPs to enter through SSH login(RSA key pair) into Linux Server?
71
votes
3
answers
135k
views
How to use ssh over http or https?
I have a linux fedora21 client laptop behind a corporate firewall (which lets through http and https ports but not ssh 22) and I have a linux fedora21 server at home behind my own router.
Browsing ...
60
votes
1
answer
36k
views
Display full settings of sshd
The OpenSSH daemon has many "default" values for its settings. So looking at the sshd_config might not give someone the complete set of active settings.
How to display the full sshd configuration (...
46
votes
2
answers
115k
views
Why does sshd requires an absolute path?
Why does sshd require an absolute path when restarting, e.g /usr/sbin/sshd rather than sshd
Are there any security implications?
P.S the error message:
# sshd
sshd re-exec requires execution with ...
43
votes
1
answer
4k
views
Why do portions of SSH public (and private) keys overlap?
Specifically, why are the first 25 characters of ssh Ed25519 public keys always the same?
For example, if I make 5 keys with ssh-keygen -o -a 100 -t ed25519, the first 25 characters are always ...
38
votes
6
answers
38k
views
tmux session killed when disconnecting from ssh
Summary: I'm trying to figure out why my tmux session dies when I disconnect from ssh
Details:
I have tmux installed on an Arch Linux system. When I start a tmux session I can detach from it and ...
36
votes
6
answers
342k
views
X client forwarded over SSH "cannot open display: localhost:11.0"
I have enabled X forwarding on remote machine where SSH server is running:
# grep -i forward /etc/ssh/sshd_config
X11Forwarding yes
#
On local machine, I have started SSH client with -X flag which ...
30
votes
3
answers
56k
views
Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys [duplicate]
EDIT
The issue as exposed here is
solved (about files modes of the .ssh folder.
But an other issue persists so I create a new question : > Unable to login with SSH-RSA key
I can no longer ...
26
votes
3
answers
126k
views
Match multiple users in 'sshd_config'
I'm trying to apply the same sshd settings to multiple users.
According to the manual, it seems Match User acts like an AND:
Introduces a conditional block. If all of the criteria on the Match line ...
22
votes
1
answer
25k
views
Authentication refused: bad ownership or modes for directory /root
I'm trying to SSH into my remote VPS with Debian onboard. Running sshd in debug mode, I found that:
Authentication refused: bad ownership or modes for directory /root
I tried setting permissions as I ...
22
votes
3
answers
48k
views
sshd: what are the practical effects of setting "UsePAM no"
in /etc/ssh/sshd_config, PAM is enabled by default on Debian 10:
UsePAM yes
In a situation when I don't want to allow login with password or kerberos, and only want to allow SSH key authentication, ...