How to install and run SSH on your PS2 TOOL

Discussion in 'Sony Programming and Development' started by CJ!, Aug 6, 2007.

  1. CJ!

    CJ! Active Member

    Joined:
    Nov 6, 2005
    Messages:
    40
    Likes Received:
    0
    Ok, besides the fact that telnet is terribly insecure, I also dont much like it, not to mention it did not want to work right.

    This tiny guide will install SSH on your PS2 TOOL, and get it running.

    Note: This guide requires knowledge of linux, whoever wants to can make one more user friendly, just give credit where it is due!

    The simplest way is with wget, my TOOL lacked wget, so I did the following:

    To check if you have wget, just type in on your TOOL-> wget

    If something along the lines of "wget: missing URL" shows up, you have wget, and you can skip this section, if you get a "command not found", do this next step!


    I set up a FTP server on my PC (tons of guides out there, fairly simple once its set)

    Then I got the wget RPM, here: (its a link, click and save as!)-> wget

    Code:
    I placed the wget RPM in my FTP directory (depends on your ftp server)
    
    Boot your TOOL up (of course), and access it via the linux side.
    
    Type in: [B]ftp YOURLOCALIP[/B]
    
    It will ask for a user/password, put in whatever you set.
    
    Then using cd/dir, you can nagivate to your directory. (Ideally, place the file in the users home directory, so you only need run the next command, vs navigating to it)
    
    Once in the proper directory, type: [B]get wget-1.5.3-2.i386.rpm[/B]
    
    Once complete, type [B]exit[/B]
    
    I wish that part was easier, its just complicated is all

    Now, you can type: rpm -i wget-1.5.3-2.i386.rpm

    As long as there are no errors, type: wget , it should display a few lines, the first of which being "wget: missing URL" , if so Great!

    Now, to install the ssh daemon:

    Code:
    Type: [b]wget ftp://ftp.pbone.net/mirror/www.haoli.org/pub/redhat-5.2/RPMS/i386/ssh-2.0.13-2.i386.rpm[/b]
    
    It will then download.
    
    Follow that up with a [B]rpm -i --nodeps ssh-2.0.13-2.i386.rpm[/B]
    
    The nodeps tells the installer not to check for dependancies, which are not installed (but not needed)
    
    Once that is done, type:
    
    [B]ln -s /usr/sbin/sshd2 /usr/sbin/sshd[/B]
    
    This creates a symbolic link, the script that is autoinstalled looks for sshd, but we just redirect it to sshd2 (we COULD edit the script, but this is easier)
    
    Now to test our script, issue a: [b]/etc/rc.d/init.d/sshd start[/b]
    
    It should respond, saying "Starting sshd: sshd"
    
    If so, great!
    
    Now, the tricky part, it does not work (atleast not here), without editing the hosts file, however that is replaced every time at boot with one from Sony init scripts.
    Code:
    Type this (where YOURIP and YOURPCNAME are your PC's IP addy, and your PC name!)
    [B]echo "echo "YOURIP     YOURPCNAME" >>/etc/hosts" >>/etc/rc.d/rc.local[/B]
    
    Upon reboot, access your tool via ssh YOURTOOLIP, with the user root, and its password, and you should be in fine!

    Hopefully this will work fine for you, if not, dont hesitate to let me know, and I can help out!

    Remember, watch for typos, everything is case sensitive etc!

    Enjoy,
    CJ!
     
    Last edited: Aug 6, 2007
  2. unclejun

    unclejun Site Supporter 2011-2014

    Joined:
    Nov 12, 2005
    Messages:
    1,912
    Likes Received:
    120
    Why not skipping the wget part?
    I know it's handy to have it (sometimes) but I rather install lynx or use only ftp, both are more friendly than wget.

    Anyway, it's a good alternate way to control the Tool without the Target manager, I wonder why I haven't think of it...
    Thanks.
     
  3. CJ!

    CJ! Active Member

    Joined:
    Nov 6, 2005
    Messages:
    40
    Likes Received:
    0
    Well, FTP needs a server etc, wget for one file is a bit easier than ftp (though yes I know, you need to set up a FTP server anywho, so wget is somewhat pointless)

    But, it helps to have a way to access the tool without hooking up a monitor and keyboard, personally , I just use my linux box to communicate with the tool, dont need the pc side at all, but its useful nevertheless.
     
  4. port187

    port187 Serial Chiller

    Joined:
    Mar 16, 2007
    Messages:
    1,938
    Likes Received:
    85
    Works great! thanks for writting the howto

    note:

    TOOLS usually have /usr set on read only, if you get any errors installing the rpms check how /usr is mounted:
    just type: mount
    if you will see the following:

    /dev/hda1 on /usr type ext2 (ro)

    then type:

    mount -o remount, rw /usr

    you will now be able to write to your /usr

    also if you have redhat 6.2 instead of 5.x running then you should shop for your rpms at:

    ftp://ftp.pbone.net/mirror/www.haoli.org/pub/redhat-6.x/RPMS/i386/
     
    Last edited: Sep 26, 2007
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page