Page 1 of 1

Unable to enable ssh

Posted: Wed Jun 01, 2011 9:01 pm
by ddad0f3monsters
HI all
I am having difficulty enabling SSH on my Joggler :oops: , my plan is to install squeezeplay on native OS as i have tried joli os and ubuntu and dont find them to be SWMBO friendly which is essential.
I have used the same usb stick used to run both joli and ubuntu to try and enable SSH but each time after it reboots i try and use putty and it tells me its unable to connect or just closes.
I have tried 3 usb sticks and a micro sd card each time with the same results, im at a loss which is why im posting here.
In all honesty its proabably me co*k*ng up by doing something wrong. but any help would be appreciated.

Thanks

Re: Unable to enable ssh

Posted: Thu Jun 02, 2011 6:12 am
by dwl99
1. Check you have the correct IP address for your Joggler :-)

2. Run the following commands, it is recommended you copy and paste each line:

nvram -w net.login=YES
touch /etc/shadow
ln -s /openpeak/tango/common_libs/libgssapi_krb5.so.2 /lib/libgssapi_krb5.so.2
mkdir /var/run/sshd
cp -p /etc/ssh/sshd_config /etc/ssh/sshd_config.original
sed -i "s/UsePAM\ yes/\#UsePAM \yes/g" /etc/ssh/sshd_config
echo "letmeinssh:\$1\$ZiLC0meg\$e55qljsb4ssEKY3dQMsxP1:0:0:root:/:/bin/sh" >> /etc/passwd
/usr/sbin/sshd &
cp -p /etc/init.d/boot.d/S69boot.sshd /root/S69boot.sshd.original
sed -i "s/OFF in/\ in/g" /etc/init.d/boot.d/S69boot.sshd
sed -i "s/log_daemon_msg/\#\ log_daemon_msg/g" /etc/init.d/boot.d/S69boot.sshd
sync
sync

3. Use the command passwd to change the password of your account. This is important to protect your joggler from unauthorized access.

4. SCP Installation:

The following script must be run from the Joggler. It's intended to download and install the appropriate files to enable SCP. If you are using a Windows client, grab WinSCP. Work very well. You need to install SSH first.


cd /tmp

wget http://london.mnetcs.com/joggler/installSCP.sh

# Convert installSCP.sh from DOS-style.

tr -d \\r < installSCP.sh > installSCP.unix.sh

chmod +x installSCP.unix.sh

./installSCP.unix.sh

rm installSCP.unix.sh

rm installSCP.sh


username is letmeinssh
password joggler1234

Hope this helps

Re: Unable to enable ssh

Posted: Thu Jun 02, 2011 8:52 am
by ddad0f3monsters
Thanks for that,
one quick question (again showing my stupidity) in point 2. what am i using to input these commands? is it through terminal whilst booted into Joli or Ubuntu? and once i get to point 4 are these commands entered using winSCP with the joggler booted into native OS?
Sorry for the daft questions i just dont want to end up buggering up my Joggler.

Thanks

Re: Unable to enable ssh

Posted: Thu Jun 02, 2011 2:12 pm
by dwl99
You need to use the Joggler OS & install gforums' plug 'n' pimp to enable telnet. This often installs SSH too but I had to do these additional steps to get it to work.