Page 1 of 1

How to start ssh daemon?

Posted: 30 Oct 2015, 17:08
by miner_tom
Hi,

I am attempting to copy files between two linux computers that are connected via an ethernet hub. One computer is running linux fedora and the other is running Porteus. I am certain that the machine running fedora has the ssh daemon running. I was able to start it with "systemctl start sshd" and I can see lots of files related to ssh keys in /etc/ssh. However, on the Porteus machine, there is no command for systemctl and I do not know which package to load in order to get it. Also, there are only to files in /etc/ssh, sshconfig and sshd_config. Finally, it seems that in both of these files on the Porteus machine, everything is commented out.

I can ping each computer from the other, so I know that they are connected.

Thank You
Tom

Re: How to start ssh daemon?

Posted: 30 Oct 2015, 18:09
by brokenman

Code: Select all

chmod +x /etc/rc.d/rc.sshd
/etc/rc.d/rc.sshd start
To make it persistent you will need to copy the file into rootcopy.

Code: Select all

cp -a --parents /etc/rc.d/rc.sshd /mnt/sdXy/rootcopy
Files in the rc.d file that are executable are run at startup.