On Thu, Jun 25, 2015 at 2:57 PM, Nils M Holm <n...@t3x.org> wrote:

>
> On 2015-06-25T13:09:00-0500, Ryan Gonzalez wrote:
> > FYI, for what it's worth, I usually use SSH to sync files between
> > my Linux laptop and my Plan 9 VM.
>
> Thanks for the suggestion! Care to give me a short introduction to
> ssh on Plan 9? I normally avoid ssh like the plague, so I assume I
> know nothing about it.
>
>
I don't use FreeBSD, so this might be slightly wrong. :)

Sources:

https://www.freebsd.org/doc/handbook/openssh.html
http://plan9.bell-labs.com/wiki/plan9/connecting_to_other_OSes/index.html

You want to do this in FreeBSD:

- Edit /etc/rc.conf and check if this line is present:

    sshd_enable="YES"

  If it isn't, add it.

- Edit /etc/ssh/sshd_config and add the following lines:

    Protocol 2,1
    HostKey /etc/ssh/ssh_host_key
    AllowUsers username@plan9_machine_ip_address

- Run:

    ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
    chmod 644 /etc/ssh/ssh_host_key


That's the setup. Now, whenever you want to access your machine's files
from Plan 9, run this on FreeBSD:

    service sshd start

And on Plan 9:

    ssh username@bsd_machine_ip_address

Type 'yes' at any prompts that pop up.


> > Also, last time I tried, VirtualBox was a bit faster in emulating
> > Plan 9 than QEMU, especially without KVM.
>
> VirtualBox is much faster on my machine, but I don't manage to
> set up any network connections at all. NIC is recognized, but
> ip/ipconfig hangs and after configuring manually, not even ip/ping
> works. So I'll stick to QEMU for now.
>
> --
> Nils M Holm  < n m h @ t 3 x . o r g >  www.t3x.org
>



-- 
Ryan
[ERROR]: Your autotools build scripts are 200 lines longer than your
program. Something’s wrong.
http://kirbyfan64.github.io/

Reply via email to