Start SSHD (through launchd?) from CLI

Discussion in 'macOS' started by kalisphoenix, Jan 5, 2006.

  1. kalisphoenix macrumors 65816

    kalisphoenix

    Joined:
    Jul 26, 2005
    #1
    How do you do this? Is it possible?

    sudo sshd

    doesn't seem to work (my newly-headless laptop closes the connection right away).

    Code:
    OpenSSH_3.8.1p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug1: Connecting to 192.168.1.100 [192.168.1.100] port 22.
    debug1: Connection established.
    debug1: identity file /Users/ndouglas/.ssh/identity type -1
    debug1: identity file /Users/ndouglas/.ssh/id_rsa type -1
    debug1: identity file /Users/ndouglas/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1
    debug1: match: OpenSSH_3.8.1p1 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_3.8.1p1
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    
    debug1: SSH2_MSG_KEXINIT sent
    Connection closed by 192.168.1.100
    
    In case that helps.

    Edit: Fixed that. Now I'm getting a "Credentials cache not found" error.
     
  2. kalisphoenix thread starter macrumors 65816

    kalisphoenix

    Joined:
    Jul 26, 2005
    #2
    Fixed.

    sudo /usr/libexec/sshd-keygen-wrapper
    sudo /usr/sbin/sshd -i

    Those need to be run on the server, which is irritating when it's headless 8)
     

Share This Page