TurnKey Linux Virtual Appliance Library

[Solution] Unable to SSH after having installed Likewise Open

I don't know if this is a problem in Likewise Open or TKL, but this is how I've fixed it.

  • TKL WordPress 11.1
  • Likewise Open

Set ChallengeResponseAuthentication to no in /etc/ssh/sshd_config


# Install LikewiseOpen to integrate with Active Directory

# Set some variables:

# Download the installer:
wget http://www.likewise.com/bits/6.0/8323/LikewiseOpen-
# Install:
sh LikewiseOpen-
# Join the domain:
domainjoin-cli join "$domain" "$admin_domain_account"
# Add the Domain Admins and the server admin into the allowed users:
/opt/likewise/bin/lwconfig RequireMembershipOf "$domain\Domain Admins" "$domain\$admin_domain_account"
# Add the admin accounts in sudoers (domain must be CAPITALIZED):
sh -c "echo '$win_domain\\$admin_domain_account ALL=(ALL) ALL' >> /etc/sudoers"
sh -c "echo '% $win_domain\\domain^admins ALL=(ALL) ALL' >> /etc/sudoers"

# Disallow root login via ssh:
sed -i 's|PermitRootLogin yes|PermitRootLogin no|' /etc/ssh/sshd_config
# Disable empty passwords:
sed -i 's|PermitEmptyPasswords yes|PermitEmptyPasswords no|' /etc/ssh/sshd_config
# Fix to allow ssh after Likewise domain join:
sed -i 's|ChallengeResponseAuthentication yes|ChallengeResponseAuthentication no|' /etc/ssh/sshd_config

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)