Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #175124
| From | Russell Gadd <russ.mail.lists@gmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: How to get ssh to run in daemon script |
| Date | 2016-11-27 22:10 +0100 |
| Message-ID | <sIeRX-1cD-7@gated-at.bofh.it> (permalink) |
| References | <sI5vj-3xy-5@gated-at.bofh.it> <sI7dM-4ot-7@gated-at.bofh.it> <sIeRX-1cD-9@gated-at.bofh.it> |
| Organization | A noiseless patient Spider |
On 27/11/16 13:00, Nemeth Gyorgy wrote: > ... > What user runs the daemon? If it is a separate user then run the ssh > with that user interactively. If the user does not have the > ~/.ssh/known_hosts file or the destination host is not in it, then you > will have problems. I've now discovered that the daemon is run by root. As I said in my post the ssh command does run successfully when run interactively "but if I run the ssh command interactively from the usual graphical terminal (as root) it shuts down the NAS". /root/.ssh/known_hosts does exist. As it does work interactively, presumably root must have the correct entries in the known_hosts file. One problem is that when the daemon runs the script the ssh command fails and I don't know if there was any error message, and if so where to find any error messages after I reboot.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to get ssh to run in daemon script Russell Gadd <russ.mail.lists@gmail.com> - 2016-11-27 12:10 +0100
Re: How to get ssh to run in daemon script Nemeth Gyorgy <friczy@freemail.hu> - 2016-11-27 14:00 +0100
Re: How to get ssh to run in daemon script Russell Gadd <russ.mail.lists@gmail.com> - 2016-11-27 22:10 +0100
Re: How to get ssh to run in daemon script Richard Hector <richard@walnut.gen.nz> - 2016-11-28 13:30 +0100
Re: How to get ssh to run in daemon script Russell Gadd <russ.mail.lists@gmail.com> - 2016-11-28 22:30 +0100
csiph-web