Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
hi boys, I want to connect to a server with this command: ssh -L 8119:news.cs.unibo.it:119 emisurac@dotto.cs.unibo.it when I start Mozilla Thunderbird. How do it?? thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9

    automatic connection to any serever


    hi boys, I want to connect to a server with this command:

    ssh -L 8119:news.cs.unibo.it:119 emisurac@dotto.cs.unibo.it

    when I start Mozilla Thunderbird. How do it??
    thanks

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    erm, you could create a script like this one:
    Code:
    #!/bin/bash
    
    # Connect to server, and if succesful start thunderbird
    ssh -L 8119:news.cs.unibo.it:119 emisurac@dotto.cs.unibo.it && thunderbird
    (note: you might have to change the command to start thunderbird to one that works on your system).

    Then run the script when you want to start thunderbird, and it'll firstly try and connect to the server, and then if that's succesful it'll start thunderbird.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9
    thank for help, but I dont know where I must put the script, which you write. Moreover I must to put a password.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    okay, write the script, call it e.g. ctt save it in /bin and then make in executable with
    Code:
    chmod +x /bin/ctt
    and then, whun you want to run thunderbird, open up a terminal and type
    Code:
    ctt
    and it should prompt for a password and then open thunderbird.

    If you have any problems with the script, come back and i'll try and fix them, since I'm not 100% sure it'll work.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  6. #5
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9
    sorry but I have a problem:

    I start the command ctt and it connect to server news.cs.unibo.it after I put the password, but dont open thunderbird, start it only when I close the connection at news.cs.unibo.it.

  7. #6
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    okay, then try this as the script, it should work, though it does open thunderbird before you shh....

    Code:
    #!/bin/bash
    
    thunderbird &
    ssh -L 8119:news.cs.unibo.it:119 emisurac@dotto.cs.unibo.it
    let's hope that that works.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  8. #7
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9
    I already tryed but strat thunderbird but non start connection

  9. #8
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9
    I think if I can edit the exucutable file of thunderbird and put on this the all connection information.
    But I don't it.

  10. #9
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    I'm thinking that I've got the wrong end of the stick here.

    What is it that you want to do?

    a) Connect to a mailserver via the ssh -L stuff in Thunderbird

    b) ssh -L into a server before you start thunderbird/every time you use thunderbird

    c) another.
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  11. #10
    Just Joined!
    Join Date
    Sep 2005
    Posts
    9
    b) ssh -L into a server before you start thunderbird/every time you use thunderbird

Page 1 of 2 1 2 LastLast

Posting Permissions

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