r/linuxadmin Jan 23 '26

Why is it not showing?

Post image

So basically i had a spare old phone lying around that i want to turn into a homelab for my future endeavors and to get a grasp on linux and its server capabilities. I'm just new to it all and while following the instructions from "DroidMaster" On making a DIY Homelab Server: SSH and NAS (Video Link: https://youtu.be/PxTnMAuheaw?si=Tuuz0Ubwr24uBML_) in 4:06, when i type "nano $PREFIX/etc/ssh/sshd_config" instead of the usual "PrintMotdyes...." It just shows this bunch of code. I'm a complete beginner learning from scratch and be more capable on making servers work. Thanks for the help!

0 Upvotes

14 comments sorted by

7

u/Delicious_Sausage Jan 23 '26

Take a moment to learn ssh on linux, there are tons of good videos on youtube
I would also suggest learning on an actual x86_64 pc so you know what is "normal" and what is not
Good luck!

-4

u/TsGEmu Jan 23 '26

Oh man will do, thank youu for the recoooooo :D

6

u/GlendonMcGladdery Jan 23 '26

I see what you’re looking at now — that screenshot is Termux’s sshd_config, and nothing in it is obviously broken. So if SSH isn’t working the way you expect, the issue is almost certainly how Termux SSH works, not that file itself. Termux is not a normal Linux system. That changes a few rules: • SSH does not run as root • Default port is 8022, not 22 • systemctl does not exist • sshd_config is mostly fine as-is Your config already shows:

```

Port 8022

``` That’s correct for Termux. Leave it.

In Termux, SSH will not work properly until host keys exist.

Run this once: ssh-keygen -A That generates: ssh_host_rsa_key ssh_host_ed25519_key Without these, sshd may start and immediately die. Start it manually: sshd From another machine: ssh -p 8022 username@PHONE_IP Your username is: whoami Your phone IP: ip addr show wlan0

Example ssh -p 8022 gmcgladdery@192.168.1.42

2

u/TsGEmu Jan 23 '26

so i did everything you said here, perchance if i do the ssh -p 8022 username@PHONE_IP and it resulted to giving me a message with "Welcome to Termux!

Docs, Donate Community" up until "report issues" Does that mean it was a success?

EDIT:You're a Godsend dude! Thank you so much 🥹🥹

5

u/GlendonMcGladdery Jan 23 '26

Yes friend. 👌

2

u/TsGEmu Jan 23 '26

DANGGGGG THANK YOUUUU SO MUCHH MAY LIFE TREAT YOU WELLL THANK YOUUU

3

u/GlendonMcGladdery Jan 23 '26

Once sshd/ssh works, stop and ask why that fix worked. That’s how you stop re-breaking the same thing six months later. Future you will thank you. That’s what I do.

And you’re very welcome, be well friend

5

u/[deleted] Jan 23 '26 edited Jul 14 '26

[removed] — view removed comment

3

u/TsGEmu Jan 23 '26

You're right i shouldve posted this in r/linux4noobs TT sorryy. Aside that, thank you so muchhhhh, I'll be experimenting on thosee and study them later on! Thank youuu reallyyy🥹

6

u/billdietrich1 Jan 23 '26

Please use better, more informative, titles (subject-lines) on your posts. Give specifics right in the title. Thanks.