Trying to find things out

Lister

Registered
Here's a couple of things I am trying to accomplish and I'm wondering if any of you can help:

1. I want to see if you can redirect x displays from remote computers to the Mac OS X displays and vice versa

eg telnet to remote host shell and execute:
export DISPLAY xxx.xxx.xxx.xxx:0.0

I can already do this with macX but was wondering if it was native to Mac OS X (wouldn't that be neat??)

2. about SSH ...
how do I host it? In other words how do I start it up?
its seems to be there (sshd)
I log in as root ad execute:
error: Could not load host key: /etc/ssh_host_key: No such file or directory
Disabling protocol version 1
error: Could not load DSA host key: /etc/ssh_host_dsa_key
Disabling protocol version 2
sshd: no hostkeys available -- exiting.
sshd: no hostkeys available -- exiting.

how do I prepare this directory or file it says it needs?

thanks,
Lister
 
A few questions to follow up yours:

1.) How did you get/compile SSHD? This would help answer some questions about setting it up. In the meantime, check the docs from your original source.

2.) Have you checked the Darwin mailing lists? I haven't checked them for a while (I'm mainly only familiar with SSHD for FreeBSD [before it became a default part of the OS]), so I'm unsure if this has already been discussed there. Subscription info is at:

http://www.lists.apple.com/lists.ta...DarwinOS-Users&digest=Yes&listType=Discussion

3.) Barring answers from the above, this "host keys" issue is relatively common for people installing SSHD from scratch. Here's my advice:

Use the 'terminal' app to get a Unix prompt (I assume you know this pretty well, or you wouldn't be installing SSHD ;) ). Type 'man ssh-keygen' to read the manual page on creating sshd keys, and 'man sshd' to see where they should be installed.

If you have any problems, post back here and I'll try to help.
 
/usr/bin/ssh-keygen -d -f /etc/ssh_host_dsa_key

let it generate then hit enter when it asks for the passphrase (I assume the system needs to get to it so we don't want to password it I hope this is correct ;) )

ssh-keygen -f /etc/ssh_host_dsa_key
same deal here
then you run sshd and bob's your uncle
thank you schnell now that's teamwork!!!!
-Lister
 
> thank you schnell now that's teamwork!!!!

Right, then. ;). Your system should now generate new keys automatically as necessary. Post if it doesn't, or e-mail me privately. :)
 
Back
Top