[App_rpt-users] copying files between asterisk boxes under program control

Keith Williamson hkwilliamson at gmail.com
Sun Apr 10 02:18:12 UTC 2011


On Sat, Apr 9, 2011 at 5:59 PM, Ken <ke2n at cs.com> wrote:

> Thanks for the initial replies, but this is a guru-to-linux_learner
> question.  I need specifics.
>
> I spent 5 hours spelunking the internet and reading man pages, before
> posting here.
>
> I tried everything I could think of and I came close once, but crashed and
> burned.
>
>
>
> You will  note that these copying tools never have a place for password and
> usually no port reference.
>
>
>
> My conclusion is that all these tools/utilities require some setup of SSH –
> otherwise I get “connection refused” or maybe nothing at all. There is also
> the option to run a daemon, something I would like to avoid.
>
>
>
> I went into /etc/ssh/ssh_config and changed the port number that
> user-programs use - to 200 - for both machines.  That does work, since the
> error message now has port 200 in it instead of 22.
>
>
>
> ssh: connect to host 192.168.1.110 port 200: Connection refused
>
>
>
> But ssh_config has a lot of other stuff in it (# indicates the default):
>
>
>
> # Host *
>
> #   ForwardAgent no
>
> #   ForwardX11 no
>
> #   RhostsRSAAuthentication no
>
> #   RSAAuthentication yes
>
> #   PasswordAuthentication yes
>
> #   HostbasedAuthentication no
>
> #   BatchMode no
>
> #   CheckHostIP yes
>
> #   AddressFamily any
>
> #   ConnectTimeout 0
>
> #   StrictHostKeyChecking ask
>
> #   IdentityFile ~/.ssh/identity
>
> #   IdentityFile ~/.ssh/id_rsa
>
> #   IdentityFile ~/.ssh/id_dsa
>
>    Port 200
>
> #   Protocol 2,1
>
> #   Cipher 3des
>
> #   Ciphers
> aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
>
> #   EscapeChar ~
>
> #   Tunnel no
>
> #   TunnelDevice any:any
>
> #   PermitLocalCommand no
>
>
>
> That’s why I need to hear from somebody who has actually done this (or a
> variation on it) and actually gotten it to work.
>
>
>
> Thanks!
>
> 73
>
> Ken
>
>
>
> *From:* app_rpt-users-bounces at ohnosec.org [mailto:
> app_rpt-users-bounces at ohnosec.org] *On Behalf Of *Ken
> *Sent:* Saturday, April 09, 2011 5:33 PM
> *To:* app_rpt-users at ohnosec.org
> *Subject:* [App_rpt-users] copying files between asterisk boxes under
> program control
>
>
>
> Can some guru help me out with a command line instruction that will copy a
> file from one box to another, in a standard ACID installation?
>
> The boxes are behind a common router and have different port numbers for
> SSH (of course). If any config files changes are required, please show what
> is needed.
>
>
>
> Secondly
>
> If possible, is there a way to direct the output of this transfer to
> “stdin“ so that it can go directly into another program?
>
>
>
> Thanks
>
> Ken
>
> _______________________________________________
> App_rpt-users mailing list
> App_rpt-users at ohnosec.org
> http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
>
> Hi Ken,

Did you change your SSH port on the ACID systems from their default of 222
to 200? Port 222 is the default port set by ACID.

Assuming you can get SSH working between the boxes, you can use SCP (secure
copy) to copy between them.

73's,

Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20110409/327e62bc/attachment.html>


More information about the App_rpt-users mailing list