<br><div class="gmail_quote">On Tue, Dec 21, 2010 at 8:20 AM, Dr. Gerald Ardito <span dir="ltr"><<a href="mailto:gerald.ardito@gmail.com" target="_blank">gerald.ardito@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello.<div><br></div><div>I have my schoolserver up and running (at last!).</div><div><br></div><div>I want to connect to it from one of the XOs using SSH.</div><div><br></div><div>I have read what is on the wiki, but I must be missing something.</div>
<div><br>Can someone provide some detailed instructions?<br><br>Thanks.<br><font color="#888888">Gerald</font></div><br></blockquote><div><br><br>Gerald:<br><br>Though you're supposed to use keys, and I still do from my main desktop, it's convenient when you're sshing from multiple XOs or other computers to go ahead and enable password based ssh login. That way you don't have to fool with keys all the time. Since my XSs are exposed to the internet, I do run ssh on a non-standard port, which keeps out the script kiddies. If you're worried about that, it's really simple to change the port. Anyway, it's just a config file edit to allow password based ssh logins.<br>
<br>As root, create a regular user on the XS.<br><br>adduser gerald<br>passwd gerald<br><br>You'll be prompted for the new password. That's it for setting up a user.<br><br>Enable password authentication in /etc/ssh/sshd_config and /etc/ssh/<a href="http://sshd_config.in" target="_blank">sshd_config.in</a> I think you're supposed to be able to edit only sshd_config and then run "make -f /etc/xs-config.make sshd_config" to do up <a href="http://sshd_config.in" target="_blank">sshd_config.in</a> properly, but I just go ahead and make this minor change to both files, as I've never gotten xs-config.make to work consistently for me.<br>
<br>In both those files, uncomment "PasswordAuthentication yes" and comment out "PasswordAuthentication no" so it looks like this:<br><br># To disable tunneled clear text passwords, change to no here!<br>
PasswordAuthentication yes<br>#PermitEmptyPasswords no<br>#PasswordAuthentication no<br><br>Restart the ssh service.<br><br>service sshd restart<br><br>Now from an XO connected to the XS, you can<br><br>ssh <a href="mailto:gerald@172.18.0.1" target="_blank">gerald@172.18.0.1</a><br>
<br>or<br><br>ssh gerald@<XS's hostname><br><br>Enter in your password and you should be greeted with the motd! After you successfully ssh in, you can su root. Sometimes that's not "root enough," though and you might have to 'sudo su -' if it says you can't do something.<br>
<br>Anna Schoolfield<br>Birmingham<br> </div></div>