wa4chq Posted January 19, 2024 Posted January 19, 2024 I've never had problems using SSH but with Alpine, after it's set up...I can't log in remotely cuz it uses Key authentication and that seems to set up automagically. I've looked all over for a simple to understand tutorial showing how to disable the need for a key authentication and just use an easy to remember password....no luck. In a previous post, there was talks about setting up whatever version of linux you're using and then leaving it alone....and I said I can't do that and eventually I end up hosing everything.....well, I'm feeling like I'm getting close to that spot...again. lol Quote
V.T. Eric Layton Posted January 19, 2024 Posted January 19, 2024 I've never set up anything on Alpine, so I couldn't really say why it would be a pain in the posterior area. Quote
wa4chq Posted January 19, 2024 Author Posted January 19, 2024 2 minutes ago, V.T. Eric Layton said: I've never set up anything on Alpine, so I couldn't really say why it would be a pain in the posterior area. When you first boot Alpine, as root you enter "setup-alpine" and then run down the list. On the list, it asks you about openssh. And then quits making sense to me. It'd help if The-really-be Betty did a YouTube tutorial on it. Quote
V.T. Eric Layton Posted January 19, 2024 Posted January 19, 2024 I'm afraid that Bettie doing a tutorial about Alpine and SSH would be a bit distracting. Quote
securitybreach Posted January 19, 2024 Posted January 19, 2024 Just remove the offending key from ~/.ssh/known_hosts . It's not an alpine issue but an ssh issue. Quote
securitybreach Posted January 19, 2024 Posted January 19, 2024 Oh wait, you did it as root? Why? Then it would be /root/.ssh/known_hosts Quote
securitybreach Posted January 19, 2024 Posted January 19, 2024 The key is located in the .ssh/known_hosts file Quote
wa4chq Posted January 20, 2024 Author Posted January 20, 2024 3 hours ago, securitybreach said: The key is located in the .ssh/known_hosts file I will take a look. I do that when using ssh normally but that's using my own password that I've created, not a random generated key.... Quote
securitybreach Posted January 20, 2024 Posted January 20, 2024 11 hours ago, wa4chq said: I will take a look. I do that when using ssh normally but that's using my own password that I've created, not a random generated key.... Well one way to secure ssh is to use fingerprints (keys) instead of plaintext passwords. Quote
wa4chq Posted January 20, 2024 Author Posted January 20, 2024 39 minutes ago, securitybreach said: Well one way to secure ssh is to use fingerprints (keys) instead of plaintext passwords. My problem is when Alpine auto sets up openssh and gives it a key and I want to access alpine from a remote desktop, I want to be able to use a simple, easy to remember password. I'm not really concerned about how secure it is. Setting up ssh on every thing I've used except for Alpine has been easy. I found these articles and need to read them over. Openssh and SSH Quote
securitybreach Posted January 20, 2024 Posted January 20, 2024 2 minutes ago, wa4chq said: My problem is when Alpine auto sets up openssh and gives it a key and I want to access alpine from a remote desktop, I want to be able to use a simple, easy to remember password. I'm not really concerned about how secure it is. Setting up ssh on every thing I've used except for Alpine has been easy. I found these articles and need to read them over. Openssh and SSH Oh you don't actually need to know the key. It's used as as a secure handshake. Once you accept the fingerprint and put in the password, it stores the key which is used to identify you. Further explanation: https://wiki.archlinux.org/title/SSH_keys Quote
wa4chq Posted January 20, 2024 Author Posted January 20, 2024 7 hours ago, securitybreach said: Oh you don't actually need to know the key. It's used as as a secure handshake. Once you accept the fingerprint and put in the password, it stores the key which is used to identify you. Further explanation: https://wiki.archlinux.org/title/SSH_keys That sounds simple enough but when it does the fingerprint, it hasn't asked to set up a password....unless it uses root password (for now) Quote
securitybreach Posted January 20, 2024 Posted January 20, 2024 7 minutes ago, wa4chq said: That sounds simple enough but when it does the fingerprint, it hasn't asked to set up a password....unless it uses root password (for now) That depends on how you set it up. You can use a password with a fingerprint, just a password or just a fingerprint. Quote
wa4chq Posted January 20, 2024 Author Posted January 20, 2024 Just now, securitybreach said: That depends on how you set it up. You can use a password with a fingerptint, just a password or just a fingerprint. OK...it seems then to just do fingerprint.....l will do it later, but I'll do a VM of Alpine and when I get to that spot, I'll take a screenshot. I might be telling you the wrong thing.... 1 Quote
wa4chq Posted January 21, 2024 Author Posted January 21, 2024 The jpeg is an example of Alpine sshd setup. I went with the defaults. I just want to try Alpine on a headless RPi, I have never setup SSHD (as I recall). I'm not concerned about security etc. When I use Raspberry Pi OS, I can enable SSH two ways...before writing to the micro SD card or after booting and running "raspberry-config". Simple. I haven't tried this example yet....editing /etc/ssh/sshd_config , halfway down under "Alpine Linux Initial Setup". This might be all I need to do. 1 Quote
wa4chq Posted January 21, 2024 Author Posted January 21, 2024 I got it working. Editing /etc/ssh/sshd_config worked. Now let me start tricking it out... Quote
securitybreach Posted January 21, 2024 Posted January 21, 2024 4 minutes ago, wa4chq said: I got it working. Editing /etc/ssh/sshd_config worked. Now let me start tricking it out... Nice 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.