Find the answer to your Linux question:
Results 1 to 2 of 2
Pls i need someodys help!!! i am trying to a write a script using a the /bin/bash script All that i am trying to do is to log onto a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    3

    FTP Scripting


    Pls i need someodys help!!!

    i am trying to a write a script using a the /bin/bash script

    All that i am trying to do is to log onto a remote server ( IP 10.0.0.59)
    and then logon with a username and a password.

    all this must be done in the script, any help with be GREAT!!

    Gul

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    if you want to use ssh, then something like:

    Code:
    #!/bin/bash
    ssh user@host
    will open an ssh connection to the computer "host" using the username "user"

    This will however need you to supply the password. You could look into SSH key authentication if you didn't want to be asked for a password every time.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

Posting Permissions

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