Hi,
I seem to be having trouble SSHing into my Haiku box from a linux box.
I can ping the haiku box, which remains named “shredder” I can also ping by the local IP 192.168.1.xxx
SSH has been enabled in the Nework Preferences.
When I try to ssh in from my linux box:
ssh user@192.168.1.xxx
Permission denied, please try again.
I also try using the hostname shredder.attlocal.net (just in case there is a shredder out on the internet)
I have set a password on shredder, twice (typing very carefully the 2nd time)
I have rebooted shredder several times.
2 Likes
Did you enable root login in the sshd config file?
1 Like
Oh, no I had not, but then I am logging in as user, not root
Do I still need to?
— update —
RootLogin is enabled now.
verified sshd is running.
Permission is still denied for both root and user.
Most everything in ssh_config is still commented out?
Is RootLogin yes
?
user
is root, (uid 0)
This is what works for me on new installs:
Set PermitRootLogin
to yes
on /system/settings/ssh/sshd_config
Make sure user
has a password set (run /bin/passwd
)
Restart the sshd daemon, or restart the OS.
1 Like
donn
November 1, 2024, 8:13am
6
(Of course the configuration files are in $HOME/config/settings, not $HOME/.ssh)
I start with an ssh from the new host to the old host, really an scp where I copy over the authorized key. I’m not sure I have a password on Haiku, I guess it depends on whether a Haiku install ever had to serve as the old host.
That said, I have had trouble with sshd under some network configurations. Kind of a long time ago. What version of Haiku?
Can you use the -v
switch on the ssh command?
You should also inspect the SSHd logs on the Haiku machine.
Can you ssh from the Haiku machine into it-self?