Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Why can't I SSH into a remote server?

  1. #11
    Join Date
    Jan 2012
    Beans
    67

    Re: Why can't I SSH into a remote server?

    Can you please tell me the command to add those rules?

  2. #12
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    iptables-save / iptables-restore

    One way is like this:

    Code:
    sudo iptables-save > /home/thpubs/iptables.rules
    nano -w /home/thpubs/iptables.rules
    sudo iptables-restore < /home/thpubs/iptables.rules
    You can substitute your favorite editor for nano. Also, you can edit .nanorc to have 'set nowrap' so that you don't have to put -w all the time.
    Last edited by Lars Noodén; November 14th, 2012 at 12:34 PM.

  3. #13
    Join Date
    Jan 2012
    Beans
    67

    Re: Why can't I SSH into a remote server?

    Thanks a lot Lars Noodén and also Grenage for your help! Lars's trick work Thanks a lot!

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •