Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sshd]

sshd is the SSH daemon which responds to incoming requests. Do not use this tag for questions about Solid-state hard drives! They should be tagged with "hybrid-storage" tag.

0
votes
1answer
20 views

What are the tasks of ssh and sshd respectively?

I know that sshd is the SSH daemon and also acts as SSH server. I am more interested in the details. From the man page of ssh, https://linux.die.net/man/1/ssh There are some high level explanations, ...
0
votes
1answer
43 views

No supported authentication methods available [preauth]

I have a problem with logging using public key genereted with puttygen. My /var/log/auth.log says No supported authentication methods available [preauth] When attempting to connect using putty I ...
0
votes
0answers
15 views

Openssh 7_9: key exchange failed, expected SSH_MSG_KEX_GEX_GROUP

I'm trying to connect from SmartCVS via ssh to a Fedora 29 system but connection fails with an error message "key exchange failed, expected SSH_MSG_KEX_GEX_GROUP". Since SmartCVS is somewhat ...
0
votes
1answer
44 views

Raspbian headless ssh (sshswitch.service) file not working

I just downloaded and wrote the Raspbian Stretch headless image to a micro SD card. I added a DHCP configuration to give the ethernet adapter a 10.0.0.254 address. I then gave my desktop PC's ethernet ...
0
votes
1answer
22 views

Get SSH authentication data after key authentication

Is it possible, from the server side to retrieve data used in the key authentication after this is completed? For example, from a pam module, to get the public key used, the challenge used (if it was ...
0
votes
0answers
27 views

update value of PasswordAuthentication property as yes in /etc/ssh/sshd_config silently

I want to update /etc/ssh/sshd_config file with PasswordAuthentication as yes. I am able to do it using vi editor. is it possible to do the same silently with unix command.
0
votes
2answers
34 views

Ubuntu sftp chroot jail path not being read?

I've encountered a problem, that I've been messing around since hours now, not understand what is happening. I have read tons of guides on this, which should be a 2 minute setup task on Ubuntu, and I ...
0
votes
2answers
38 views

“Failed password” and “Invalid user” - Secure Shell Server

I installed ssh-server on Ubuntu 18.04.01. When I try to access the server with PuTTY the error "access denied" is shown. The server log says "failed password" and "invalid user". I also changed "...
0
votes
0answers
88 views

SSH can not keyboard-interactive

Recently I am trying to play with the PAM modules, but I got myself in a pickle where I do not know how to use/enable keyboard-interactive on my sshd. lucian@local:~$ ssh luciannitescu@45.77.137.163 ...
0
votes
1answer
257 views

ssh permission denied (publickey,keyboard-interactive)

Why I insist on asking a question I've done a quick search on this problem and done a few solutions that have been said. None worked. What I did Termux as host. Installed apt install openssh, ...
0
votes
0answers
28 views

Running `ssh -i` without login

I would like to run sshd -i from a shell (via qrexec, if it matters), such that it will not ask for authentication. Security is not an issue here (nor is encryption required) because I am using SSH ...
0
votes
1answer
21 views

New Linux install, can't get ssh or http connections working, connections are made but drop?

So, I / we have brand new Fedora Core 28 installation we've been trying to bring online. The installation went perfectly so far as we could tell. It has two network cards, one for an internal net, one ...
0
votes
0answers
30 views

Can you disable logging in as other users over ssh? [duplicate]

I have a Macintosh server computer with 3 users: admin, git, and server. Admin is the only administrator on the computer, while git and server are normal users. I can log in to all 3 over ssh, using ...
0
votes
1answer
129 views

sshd GatewayPorts always “no”

As Trouble enabling GatewayPorts for Remote Port Forwarding over SSH is not really solving my problem, I dare to ask: I run a server on Ubuntu 16.04.5 LTS. I need to set the option GatewayPorts to ...
3
votes
1answer
43 views

Is it possible for an ssh server to know which public domain name was used to log into it?

I have a situation where I need to set up an ssh server which will be accessible by multiple different public domain names, but will provide a different TTY interface to the user depending on the ...
0
votes
1answer
61 views

SSHD does not show in PATH, but SSH does?

I am currently working on ssh protocol in python and I have wasted a huge amount of time just to start openssh server. After that I was able to start it and run my python scripts normally. There was ...
0
votes
1answer
216 views

SSH Authentication order

I want to set the authentication order when a user wants to log in. Match User user PasswordAuthentication no MaxAuthTries 5 AuthenticationOrder "publickey,password" Match all ...
1
vote
1answer
20 views

Deciding on a Upgrade path for a Laptop Hybrid HDD

How do I find out what drives I can replace my laptop Hybrid HDD with, currently i'm using a 'Seagate ST1000LM014' (8GB MLC SSD 64mb cache 2.5" 5400rpm Hybrid HDD). Would something like a 'Seagate ...
0
votes
1answer
49 views

SSH Server crashes randomly once in a week or so and comes back on when someone logs in directly

I have a Lenovo ThinkPad E560 (Ubuntu 16.04.4 LTS) stationed at our remote lab with a running openssh server that can be reached any time. Since last few months, the ssh server randomly crashes once/...
0
votes
2answers
49 views

Deactivating PEM Files

To this time, I could not find this question on somewhere else. If there is one, please let me know. One of my old employee got used to use a pem file we generated (Idk when) to login in our freebsd ...
0
votes
0answers
271 views

FreeSSHd SSH Authorization

Having installed FreeSSHd on my Windows 7 machine i have to add a new user and set the password for him. When i set the Authorization type to Password stored as SHA1 hash how is this password related ...
1
vote
1answer
39 views

SSH: How do we find user authentication mechanism used in sshd config at runtime

I'd like to modify sshd_config file to run one script if user ssh in with password and another script if user ssh into server using SSH Signed certificate. I see, This might be possible with the ...
1
vote
0answers
37 views

Fixing SSH access lost with rsa key

Background I have a server set up with SSH access via ras keys. Password access is not permitted. It was working fine. My user (I'll called that USER1) and root could log in with their respective ...
0
votes
0answers
2k views

SSH port 22 connection timed out

SSH port 22 connection timed outI got this log when tried to execute ssh $ ssh username@52.171.37.237 ssh: connect to host 52.171.37.237 port 22: Connection timed out Try to change port from 22 to ...
0
votes
0answers
401 views

Cannot ssh into Windows 10 native SSH server?

Hi have enabled sshd server in my Windows 10 Home edition and I can ssh into this PC from local Putty client using Windows 10's local IP Address(IP from home router), however, I cannot ssh into this ...
0
votes
0answers
856 views

SSH client can not connect inside the docker container

Having issues connecting from my docker container to a web server in the cloud where I can connect using my macOs terminal but not from the docker exec terminal. Steps 1.I have created a docker ...
1
vote
1answer
83 views

OpenSSH: Require Public Key Authentication for a Particular User

How may I configure my OpenSSH server to require public key authentication for a particular (regular, non-root) user? All other users may log in via password as usual.
0
votes
0answers
242 views

ssh forward to TCP

I have a particular user case: I want that any SSH connection from a specific user or port is redirected to a local TCP port, in a transparent way. So far I try some port forwarding but require the ...
2
votes
1answer
365 views

How to find out dynamic reverse SSH remote port without sudo

I can initialize reverse SSH from client with following command: $ ssh -R 0:localhost:22 <server_host> Allocated port 42853 for remote forward to localhost:22 How can I figure out that 42853 ...
1
vote
0answers
184 views

AWS EC2 connection timeout

I have an Ubuntu 16.04 host on EC2 that becomes unreachable every time I forget to close ssh connection with exit command. Here are the things I have checked: Port 22 is open (obviously since this ...
1
vote
1answer
3k views

How to define ssh private key location

I know that you can globally set per users authorized key files with this line inside /etc/ssh/sshd_config: AuthorizedKeysFile /etc/ssh/authorized_keys.d/%u Is it possible to do something similar ...
3
votes
1answer
700 views

SSH not passing LANG environment variable

I'm running a Debian server (uname -v output #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23)). When I log in from any of several clients (macOS 10.13 laptop with default ssh, the "Prompt" app on iOS, among ...
0
votes
1answer
367 views

ssh PubkeyAuthentication doesn't work for users other than root

I have a problem to ssh to a machine with the user mw without a password. I've used ssh-copy-id mw@machine. I've looked in many places and googled a lot but still couldn't find the answer. Some ...
0
votes
1answer
74 views

How to allow both root and restricted users in SSH?

Is it possible (and if so, how) to do the following with openssh-server: to be able to authenticate root user with a key and no password to be able to authenticate a non-root user with a key and no ...
1
vote
0answers
256 views

Unable to start sshd service on Windows 10

I installed the SFTP server by following this tutorial: https://winscp.net/eng/docs/guide_windows_openssh_server There was no problem while starting the sshd service the first time.  I noticed that ...
0
votes
0answers
834 views

Cannot ssh with password after upgrade to OS X Sierra

After upgrading to Mac OS X Sierra, I am no longer able to ssh with a password, I get the error: Permission denied, please try again. On the one machine I have ssh keys set up for, it just ...
0
votes
2answers
4k views

bad ownership or modes for chroot directory “/var/www”

I am getting following error in auth.log when trying to connect to site using SFTP. fatal: bad ownership or modes for chroot directory "/var/www" ls -ld of this directory shows this: drwxrwxr-x ...
0
votes
1answer
498 views

Load script on ssh login (non-interactive)

I'm trying to load environment modules from a non-interactive remote session, and set environment variables accordingly. For example, in my bashrc I normally call module load /path/to/cmake/3.x.x ...
0
votes
3answers
628 views

sshd refuses public key even though matched in authorized_keys

I'm using openSSH for windows (32-bit), and have setup sshd for public key authentication. I'm quite positive all file permissions are set correctly, and I've added the correct public key to the ...
-1
votes
1answer
644 views

PuTTY 0.67 unable to SSH into CentOS 7

When trying to ssh into a Centos 7 VM using PuTTY I'm getting "Access Denied". Here are the things that I tried based on other solved answers: unchecked GSSAPI set PermitRootLogin to yes tried sshing ...
1
vote
1answer
247 views

When SSHD process started using systemctl process is terminated by systemd seconds later

When I start the sshd process using systemctl the process starts successfully but is terminated ~5 seconds later. When I run the ExecStart command on the command line ssh runs without any issues. Can ...
0
votes
0answers
201 views

Remotely Starting Cygwin sshd on Windows 7

Our network consists of Windows 7 SP1 machines. We have Cygwin installed on these machines, including the Cygwin sshd SSH server. One machine in particular (call it host H) is used heavily by several ...
0
votes
1answer
1k views

cannot re-enable sshd after systemd mask

After disabling sshd, I'm having issues re-enabling/starting it via systemctl. I'm sure I've hosed something, but this is what I did: ~fresh xubuntu 16.04.2 install apt install openssh-server ...
0
votes
2answers
539 views

sshd: Accepted publickey for from 127.0.0.1 but no public keys are set up

I have this disturbing message in my sshd log: Jun 01 00:39:00 redy sshd[7856]: Accepted publickey for mgara from 127.0.0.1 port 34732 ssh2: RSA SHA256:ymHGJgkw9wZp6E5d/LudMza4rAeacI4mdyj/oMLgPJE Jun ...
2
votes
1answer
241 views

Using powershell as default interpreter on Windows 10's SSHD?

When using the default Windows 10 sshd (SSH serv[er|ice] / daemon), how does one set it to login with powershell instead of cmd?
1
vote
0answers
63 views

How to stop Windows 10 SSHD from clearing screen on login for clients? [closed]

When a user logs into a Windows 10 system via ssh, the screen is cleared. How can one instruct Windows 10 ssh server to not issue a clear screen at login?
2
votes
3answers
1k views

Workaround for too-short auto logout

I ssh from one Linux host to another Linux host that I don't administer. Its /etc/ssh/sshd_config is apparently configured to auto-logout after an interval of inactivity that is too brief for my ...
0
votes
1answer
3k views

Enable sshd logging

Having the following sshd_conf file: # $OpenBSD: sshd_config,v 1.98 2016/02/17 05:29:04 djm Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more ...
-1
votes
1answer
356 views

SSH not working on first attempt

We are having an issue with some of our Linux CentOS machines whereby SSH won't connect on the first attempt. If you start a session, wait 5 seconds then restart the session it works fine and ...
3
votes
1answer
434 views

Is deleting sshd.log file safe?

Recently I started running out of space in my computer and I notice there is a file in the path C:\openssh\OpenSSH-Win64\sshd.log that is almost 19GB in size. Is it safe to delete this file? and does ...