# I cant work with sshd

**URL:** <https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143>\
**Category:** Xfce\
**Created:** [July 17, 2024, 7:02am UTC](https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143 "2024-07-17T07:02:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavlar](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pavlar/32/120146_2.png) [@pavlar](https://forum.endeavouros.com/u/pavlar)\
**Post date:** [July 17, 2024, 7:02am UTC](https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143/1 "2024-07-17T07:02:23Z")

</div>

I try  
ssh xxx.xxx.xxx.xxx  
Unable to negotiate with xxxx port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss  
than I add to /etc/ssh/sshd\_config

````auto
Host pal
  HostName xxx.xxx.xxx.xxx
  HostKeyAlgorithms=+ssh-dss
``` than I restart sshd
systemctl restart sshd
Job for sshd.service failed because the control process exited with error code.
See "systemctl status sshd.service" and "journalctl -xeu sshd.service" for details.
````

---

<div class="post-metadata">

**Author:** ![2000](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/2/ee59a6/32.png) [@2000](https://forum.endeavouros.com/u/2000)\
**Post date:** [July 17, 2024, 7:53am UTC](https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143/2 "2024-07-17T07:53:27Z")

</div>

Try username@xxx.xxx.xxx.xxx

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [July 17, 2024, 3:56pm UTC](https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143/3 "2024-07-17T15:56:20Z")

</div>

ssh requires a server computer and a client computer. A ssh connection is initiated by the client computer.

In /etc/ssh there are two config files  
ssh\_config  
sshd\_config

ssh\_config is the configuration file for the client computer  
sshd\_config is the configuration file for the server computer.

Are you trying to ssh into a server you have on your LAN, or a remote computer you have no control over? We need a little more information on what you are trying to do.

expanding on what @2000 said, try  
username@xxx.xxx.xxx.xxx -p 22

Perhaps this might help some.  
[https://discovery.endeavouros.com/category/arm/](https://discovery.endeavouros.com/category/arm/)

Start with Homeserver 1

Pudge

---

<div class="post-metadata">

**Author:** ![Bink](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/bink/32/87216_2.png) [@Bink](https://forum.endeavouros.com/u/Bink)\
**Post date:** [July 17, 2024, 11:40pm UTC](https://forum.endeavouros.com/t/i-cant-work-with-sshd/58143/4 "2024-07-17T23:40:54Z")

</div>

> [@pavlar](#):
>
> Unable to negotiate with xxxx port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

The issue appears to be the servers use of a legacy algorithm, that your SSH client no longer supports by default.

You were taking the right step in adding support for that deprecated algoirthm, but you’ve added to your sshd server, not your client config.

Edit your `~/.ssh/config` file instead, creating a record for the server you’re connecting to. It might look something like this, changing or removing details, as necessary. The important line in your situation, is `HostkeyAlgorithms +ssh-dss` :

```auto
Host hostnickname
    HostName xxx.xxx.xxx.xxx
    IdentityFile ~/.ssh/someprivatekey
    HostkeyAlgorithms +ssh-dss
    User yourremoteusername
    Port 22

```

Then connect, with `hostnickname` being whatever you’ve dubbed this host in that config file:

```auto
ssh hostnickname

```
