SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    .NET inside archigamer's Avatar
    Join Date
    Jan 2002
    Location
    Strongsville OH
    Posts
    1,534
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    unable to connect via ssh

    i recently got a job involving ssh and a mac X server. what i need to do is send a file. however i am new to ssh does anyone know of any good ssh tutorials or command outlines?
    Web Finesse Studios
    Professional, business oriented web hosting and development.

  2. #2
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mac OS X is part Unix and when you SSH in you'll be using mostly Unix commands (somebody correct me if I'm wrong). So you'll have to have some basic understanding of the Unix Shell.
    Code:
    ls --> Lists all visible files in the directory
    cd <path> --> changes directory
    man <command> --> Gives you a detailed help file on a given command
    pico <filename> --> Text edits a file
    find <dir> -name <file> --> Looks for a file for you
    There's so many Unix commands you have to do some research. Look at www.linuxnewbie.org for some information or pick up "Essential System Administration" from O'Reillys. Now I'm sure there will be differences on OS X, but most of the basic stuff will be the same since OS X is built on a Unix kernel.

    Good luck.
    Aaron
    Aaron Brazell
    Technosailor



  3. #3
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    archigamer,
    I'm not sure if you can send a file with ssh because it's a shell, to transfer a file "using ssh" you need sftp.
    I say this because I used that way when uploading files to my remote server, but I admit I'm not 100% sure so Sketch or others could correct me.
    Some infos can be found here:
    www.openssh.com



    pippo
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  4. #4
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't send a file with SSH alone. SSH is just a connection protocol and does not transfer files. From WITHIN SSH you can get files and if you ftp from the shell (sftp as pippo said) you can send files too.

    Aaron
    Aaron Brazell
    Technosailor



  5. #5
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What Sketch said is correct except that SSH is not exactly a 'connection protocol'. SSH allows you to login, via a secure channel, and execute commands on a remote machine (in your case, your MacX server).

    If you want to login to your Mac server and ftp your files out, that is possible. If you want to ftp your files from your machine to your Mac server, you can't use SSH to do that. For that, you'd need to use file transfer utilities like ftp, sftp or scp to get it over to your Mac server.

    Using SSH is simply a matter of connecting to your server, logging in to your user account, and then you can start executing commands as if you were actually at the server yourself. If you know how to use a shell, you're basically all set up.

  6. #6
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by redemption
    [B]Using SSH is simply a matter of connecting to your server.../B]
    Thus a connection protocol...
    Aaron Brazell
    Technosailor



  7. #7
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSH is actually a program with it's own protocol architecture. As it turns out, it has 3 major components:

    - Transport Layer Protocol [SSH-TRANS]
    - User Authentication Protocol [SSH-USERAUTH]
    - Connection Protocol [SSH-CONNECT]

    I'm being a little (ok very ) pedantic here but SSH is not really a connection protocol. It would be more correct to say that it has a connection protocol.

    If you're up for some (lots actually) of reading, the SSH protocol architecture is described here ->
    http://libraftp.narod.ru/ssh/draft-i...tecture-09.txt

  8. #8
    Prolific Blogger silver trophy Technosailor's Avatar
    Join Date
    Jun 2001
    Location
    Before These Crowded Streets
    Posts
    9,446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nah, that's ok...

    Aaron

    Originally posted by redemption
    SSH is actually a program with it's own protocol architecture. As it turns out, it has 3 major components:

    - Transport Layer Protocol [SSH-TRANS]
    - User Authentication Protocol [SSH-USERAUTH]
    - Connection Protocol [SSH-CONNECT]

    I'm being a little (ok very ) pedantic here but SSH is not really a connection protocol. It would be more correct to say that it has a connection protocol.

    If you're up for some (lots actually) of reading, the SSH protocol architecture is described here ->
    http://libraftp.narod.ru/ssh/draft-i...tecture-09.txt
    Aaron Brazell
    Technosailor



  9. #9
    .NET inside archigamer's Avatar
    Join Date
    Jan 2002
    Location
    Strongsville OH
    Posts
    1,534
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks. ill have to tell him this. he needs me to set up oscommerce on his mac os x server for him.but he does not have a ftp server up so...

    anyways thanks for the info.
    Web Finesse Studios
    Professional, business oriented web hosting and development.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •