Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #2989

Re: Establish an alternative connection to an embedded system

From ein <ein@no.spam>
Newsgroups comp.os.linux.networking
Subject Re: Establish an alternative connection to an embedded system
Date 2014-06-22 13:45 +0200
Organization ATMAN - ATM S.A.
Message-ID <lo6fks$efi$1@node2.news.atman.pl> (permalink)
References (1 earlier) <mc32igb6pf@e6m0.huge.strangled.net> <d7d69bf6-dda5-4fa5-b142-352a6d0fd34a@googlegroups.com> <lo682o$6rv$1@node2.news.atman.pl> <c3a0283b-878c-43fd-85e4-d09f5a141e0b@googlegroups.com> <lo6bkv$1t8h$1@saria.nerim.net>

Show all headers | View raw


Pascal Hambourg wrote:
> 2) The routing table does not have a default route on ppp0. Indeed pppd
> ignores the "defaultroute" option if a default route already exists,
> unless the "replacedefaultroute" flag (which IIRC is absent from
> upstream pppd but implemented by some distributors such as openSUSE or
> Debian) is added to it.

Interesting.

Referring to author's SSH forwarding question:
You need setup pppd to do the following after each connection:
root@cooly:~# ssh root@server -p 22 -R 222:192.168.1.X:22 -v
Where:
-p 22 - is the port number of SSH @ server
X - is IP address of eth0 interface @ cooly
-v - be verbose

ssh root@server -p 22 -R 222:192.168.1.X:22
In big shortcut it means: connect to server at port 22 and forward TCP
traffic from server's 222 port of loopback interface (127.0.0.1) through
SSH connection to cooly's 192.168.1.X:22.

Then you can reach cooly from server like this:
root@server:~# ssh root@127.0.0.1 -p 222

Please use documentation to discover how to provide pppd scripting.
http://www.tldp.org/HOWTO/PPP-HOWTO/ip-up.html

Then add this options to ssh @ cooly
-N      Do not execute a remote command.  This is useful for just
forwarding ports (protocol version 2 only).
-f      Requests ssh to go to background just before command execution.

You should also setup RSA key auth. instead of using passwords, generate
keys longer than or equal to 2048B.
Root account isn't required, but only root can open ports bellow 1024
AFAIR. Use higher port instead when using different account than root.

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 00:34 -0700
  Re: Establish an alternative connection to an embedded system Andrzej Adam Filip <anfi@onet.eu> - 2014-06-22 10:09 +0200
    Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 01:46 -0700
      Re: Establish an alternative connection to an embedded system ein <ein@no.spam> - 2014-06-22 11:28 +0200
      Re: Establish an alternative connection to an embedded system ein <ein@no.spam> - 2014-06-22 11:36 +0200
        Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 03:20 -0700
          Re: Establish an alternative connection to an embedded system Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-06-22 12:37 +0200
            Re: Establish an alternative connection to an embedded system ein <ein@no.spam> - 2014-06-22 13:45 +0200
              Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 05:15 -0700
                Re: Establish an alternative connection to an embedded system Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-06-22 14:20 +0200
                Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 05:46 -0700
                Re: Establish an alternative connection to an embedded system Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-06-22 15:05 +0200
                Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 06:26 -0700
                Re: Establish an alternative connection to an embedded system Pascal Hambourg <boite-a-spam@plouf.fr.eu.org> - 2014-06-22 15:47 +0200
                Re: Establish an alternative connection to an embedded system perf60@gmail.com - 2014-06-22 07:02 -0700
  Re: Establish an alternative connection to an embedded system David Brown <david.brown@hesbynett.no> - 2014-06-22 14:45 +0200

csiph-web