Re: Encrypted file transfer

2001-01-08 Thread Pedro Zorzenon Neto

I found a good solution for my problem...

  I copied the compiled ELF file of gnupg (/usr/bin/gpg) to $HOME/bin
  Then I copied the libraries it needs to $HOME/lib
  Created ~/.gnupg/ and copied pubring.gpg into it

  So, to execute gnupg I need to set up the variable to look for libraries in a non 
default diretory:
export LD_LIBRARY_PATH=~/lib

  After than, 'gpg' is working right, so I set up a script and put it in cron, to 
execute once a day.

#!/bin/sh
export LD_LIBRARY_PATH=~/lib
cat myfile | ~/bin/gpg --batch --no-tty --armor --quiet --encrypt --always-trust 
--recipient [EMAIL PROTECTED] | mail -s "my files" [EMAIL PROTECTED]

  So, I receive some files I have in a remote computer encrypted by mail. :-)

On Tue, Jan 02, 2001 at 01:52:59PM -0500, hpknight wrote:
 If you use RSA keys, scp can run non-interactively.  If you make
 statically compiled binaries of ssh, scp, etc then you could just upload
 them to your $HOME/bin and use them from there.  I've done this in the
 past, but I had shell access to the machine so it was a bit easier.  The
 admin there was also too lazy/ignorant to install ssh, so I just installed
 my own ;)
 
 Encrypting the files with perl is a good idea as well, since they could be
 crypted then downloaded from FTP without worries.  This wouldn't require
 opening or utilizing ports that may be firewalled.  THere should be plenty
 of examples in perldoc for doing this.
 
 --Henry
 
 On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:
 
  On Tue, Jan 02, 2001 at 10:20:26AM -0800, Tom Marshall wrote:
   Can you use FTP to put precompiled ssh and scp binaries on the machine?
   $HOME/bin is usually a good place.  I've done this before with some success.
   
   ---
   The most effective Windows NT remote management tool?  A car.
  
  The remote machine is a web server with postgres.
  On the remote machine, I can use only ftp to put/retrieve data.
  This machine does't have telnetd, so... no logins...
  Other ports than 20,21,80 are firewall protected.
  
  As an workaround I can change by ftp my crontab over there and the commands are 
executed!!! :-) I don't need telnet anymore!!!
  
  I think 'scp' is not possible because it asks my password interactively...
  
 
 

-- 
Why don't you try 'Mutt' and 'GnuPG'?
Get my public key at http://www.keyserver.net
1024D/7274AA07 9F1F 1EBB 29A4 918D 2C5F  FB9C 39C9 7963 7274 AA07

 PGP signature


Re: Encrypted file transfer

2001-01-08 Thread Pedro Zorzenon Neto
I found a good solution for my problem...

  I copied the compiled ELF file of gnupg (/usr/bin/gpg) to $HOME/bin
  Then I copied the libraries it needs to $HOME/lib
  Created ~/.gnupg/ and copied pubring.gpg into it

  So, to execute gnupg I need to set up the variable to look for libraries in a 
non default diretory:
export LD_LIBRARY_PATH=~/lib

  After than, 'gpg' is working right, so I set up a script and put it in cron, 
to execute once a day.

#!/bin/sh
export LD_LIBRARY_PATH=~/lib
cat myfile | ~/bin/gpg --batch --no-tty --armor --quiet --encrypt 
--always-trust --recipient [EMAIL PROTECTED] | mail -s my files [EMAIL 
PROTECTED]

  So, I receive some files I have in a remote computer encrypted by mail. :-)

On Tue, Jan 02, 2001 at 01:52:59PM -0500, hpknight wrote:
 If you use RSA keys, scp can run non-interactively.  If you make
 statically compiled binaries of ssh, scp, etc then you could just upload
 them to your $HOME/bin and use them from there.  I've done this in the
 past, but I had shell access to the machine so it was a bit easier.  The
 admin there was also too lazy/ignorant to install ssh, so I just installed
 my own ;)
 
 Encrypting the files with perl is a good idea as well, since they could be
 crypted then downloaded from FTP without worries.  This wouldn't require
 opening or utilizing ports that may be firewalled.  THere should be plenty
 of examples in perldoc for doing this.
 
 --Henry
 
 On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:
 
  On Tue, Jan 02, 2001 at 10:20:26AM -0800, Tom Marshall wrote:
   Can you use FTP to put precompiled ssh and scp binaries on the machine?
   $HOME/bin is usually a good place.  I've done this before with some 
   success.
   
   ---
   The most effective Windows NT remote management tool?  A car.
  
  The remote machine is a web server with postgres.
  On the remote machine, I can use only ftp to put/retrieve data.
  This machine does't have telnetd, so... no logins...
  Other ports than 20,21,80 are firewall protected.
  
  As an workaround I can change by ftp my crontab over there and the commands 
  are executed!!! :-) I don't need telnet anymore!!!
  
  I think 'scp' is not possible because it asks my password interactively...
  
 
 

-- 
Why don't you try 'Mutt' and 'GnuPG'?
Get my public key at http://www.keyserver.net
1024D/7274AA07 9F1F 1EBB 29A4 918D 2C5F  FB9C 39C9 7963 7274 AA07


pgpYJ7CbH88IM.pgp
Description: PGP signature


Re: Encrypted file transfer

2001-01-02 Thread Alexander Reelsen

On Tue, Jan 02, 2001 at 02:57:40PM -0200, Pedro Zorzenon Neto wrote:
 I know how to use gnupg and scp and they would work fine, but the
 other computer does't have them installed. I sent an email to
 root@remote_computer and they answer me that they can't install
 anything for me.
 
 Does anyone know a way to install gnupg, ssh-client or some other
 program in the remote computer as an normal user and encript data to
 send to my home computer If you know more than one way to do this,
 I'd prefer some assimetric encription method (public/private key).
I've got a source of a netcat with crypt capabilities floating around
somewhere. If you want I can mail it to you or so. It's called cryptcat
iirc, perhaps you can find it one the need. However it is quite limited.
(I don't have any URL for it atm)

Another idea would be to use a small perl client/server modell with
Crypt::CBC and IDEA...

You could also wrap your ftpd into SSL or use a httpsd. There are dozens
of possibilites...


MfG/Regards, Alexander

-- 
Alexander Reelsen   http://joker.rhwd.de
[EMAIL PROTECTED]   GnuPG: pub 1024D/F0D7313C  sub 2048g/6AA2EDDB
[EMAIL PROTECTED] 7D44 F4E3 1993 FDDF 552E  7C88 EE9C CBD1 F0D7 313C
Securing Debian:http://joker.rhwd.de/doc/Securing-Debian-HOWTO


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Encrypted file transfer

2001-01-02 Thread Tom Marshall

Can you use FTP to put precompiled ssh and scp binaries on the machine?
$HOME/bin is usually a good place.  I've done this before with some success.

---
The most effective Windows NT remote management tool?  A car.

On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:

 Hi all,
 
   Happy New Year!
 
   I have some database files on a remote computer that I'd like to transfer to home, 
and I need to send them encrypted.
 
   I know how to use gnupg and scp and they would work fine, but the other computer 
does't have them installed. I sent an email to root@remote_computer and they answer 
me that they can't install anything for me.
 
   Does anyone know a way to install gnupg, ssh-client or some other program in the 
remote computer as an normal user and encript data to send to my home computer If 
you know more than one way to do this, I'd prefer some assimetric encription method 
(public/private key).
 
 Thanks
 Pedro
 


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Encrypted file transfer

2001-01-02 Thread Pedro Zorzenon Neto

 Another idea would be to use a small perl client/server modell with
 Crypt::CBC and IDEA...
 To use perl is a good idea. 
 I could create a perl script that encrypts the files with a public key and send them 
to me by e-mail. So, I can put it in cron and receive the files periodically.

 Some help about what do I need to encrypt files in Perl? Some howto or man?

   Thanks

 PGP signature


Re: Encrypted file transfer

2001-01-02 Thread Pedro Zorzenon Neto

On Tue, Jan 02, 2001 at 10:20:26AM -0800, Tom Marshall wrote:
 Can you use FTP to put precompiled ssh and scp binaries on the machine?
 $HOME/bin is usually a good place.  I've done this before with some success.
 
 ---
 The most effective Windows NT remote management tool?  A car.

The remote machine is a web server with postgres.
On the remote machine, I can use only ftp to put/retrieve data.
This machine does't have telnetd, so... no logins...
Other ports than 20,21,80 are firewall protected.

As an workaround I can change by ftp my crontab over there and the commands are 
executed!!! :-) I don't need telnet anymore!!!

I think 'scp' is not possible because it asks my password interactively...

 PGP signature


Re: Encrypted file transfer

2001-01-02 Thread hpknight

If you use RSA keys, scp can run non-interactively.  If you make
statically compiled binaries of ssh, scp, etc then you could just upload
them to your $HOME/bin and use them from there.  I've done this in the
past, but I had shell access to the machine so it was a bit easier.  The
admin there was also too lazy/ignorant to install ssh, so I just installed
my own ;)

Encrypting the files with perl is a good idea as well, since they could be
crypted then downloaded from FTP without worries.  This wouldn't require
opening or utilizing ports that may be firewalled.  THere should be plenty
of examples in perldoc for doing this.

--Henry

On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:

 On Tue, Jan 02, 2001 at 10:20:26AM -0800, Tom Marshall wrote:
  Can you use FTP to put precompiled ssh and scp binaries on the machine?
  $HOME/bin is usually a good place.  I've done this before with some success.
  
  ---
  The most effective Windows NT remote management tool?  A car.
 
 The remote machine is a web server with postgres.
 On the remote machine, I can use only ftp to put/retrieve data.
 This machine does't have telnetd, so... no logins...
 Other ports than 20,21,80 are firewall protected.
 
 As an workaround I can change by ftp my crontab over there and the commands are 
executed!!! :-) I don't need telnet anymore!!!
 
 I think 'scp' is not possible because it asks my password interactively...
 


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Encrypted file transfer

2001-01-02 Thread Alexander Reelsen
On Tue, Jan 02, 2001 at 02:57:40PM -0200, Pedro Zorzenon Neto wrote:
 I know how to use gnupg and scp and they would work fine, but the
 other computer does't have them installed. I sent an email to
 [EMAIL PROTECTED] and they answer me that they can't install
 anything for me.
 
 Does anyone know a way to install gnupg, ssh-client or some other
 program in the remote computer as an normal user and encript data to
 send to my home computer If you know more than one way to do this,
 I'd prefer some assimetric encription method (public/private key).
I've got a source of a netcat with crypt capabilities floating around
somewhere. If you want I can mail it to you or so. It's called cryptcat
iirc, perhaps you can find it one the need. However it is quite limited.
(I don't have any URL for it atm)

Another idea would be to use a small perl client/server modell with
Crypt::CBC and IDEA...

You could also wrap your ftpd into SSL or use a httpsd. There are dozens
of possibilites...


MfG/Regards, Alexander

-- 
Alexander Reelsen   http://joker.rhwd.de
[EMAIL PROTECTED]   GnuPG: pub 1024D/F0D7313C  sub 2048g/6AA2EDDB
[EMAIL PROTECTED] 7D44 F4E3 1993 FDDF 552E  7C88 EE9C CBD1 F0D7 313C
Securing Debian:http://joker.rhwd.de/doc/Securing-Debian-HOWTO



Re: Encrypted file transfer

2001-01-02 Thread Tom Marshall
Can you use FTP to put precompiled ssh and scp binaries on the machine?
$HOME/bin is usually a good place.  I've done this before with some success.

---
The most effective Windows NT remote management tool?  A car.

On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:

 Hi all,
 
   Happy New Year!
 
   I have some database files on a remote computer that I'd like to transfer 
 to home, and I need to send them encrypted.
 
   I know how to use gnupg and scp and they would work fine, but the other 
 computer does't have them installed. I sent an email to [EMAIL PROTECTED] and 
 they answer me that they can't install anything for me.
 
   Does anyone know a way to install gnupg, ssh-client or some other program 
 in the remote computer as an normal user and encript data to send to my home 
 computer If you know more than one way to do this, I'd prefer some 
 assimetric encription method (public/private key).
 
 Thanks
 Pedro
 



Re: Encrypted file transfer

2001-01-02 Thread Pedro Zorzenon Neto
 Another idea would be to use a small perl client/server modell with
 Crypt::CBC and IDEA...
 To use perl is a good idea. 
 I could create a perl script that encrypts the files with a public key and 
send them to me by e-mail. So, I can put it in cron and receive the files 
periodically.

 Some help about what do I need to encrypt files in Perl? Some howto or man?

   Thanks


pgpZgyvKC2viu.pgp
Description: PGP signature


Re: Encrypted file transfer

2001-01-02 Thread hpknight
If you use RSA keys, scp can run non-interactively.  If you make
statically compiled binaries of ssh, scp, etc then you could just upload
them to your $HOME/bin and use them from there.  I've done this in the
past, but I had shell access to the machine so it was a bit easier.  The
admin there was also too lazy/ignorant to install ssh, so I just installed
my own ;)

Encrypting the files with perl is a good idea as well, since they could be
crypted then downloaded from FTP without worries.  This wouldn't require
opening or utilizing ports that may be firewalled.  THere should be plenty
of examples in perldoc for doing this.

--Henry

On Tue, 2 Jan 2001, Pedro Zorzenon Neto wrote:

 On Tue, Jan 02, 2001 at 10:20:26AM -0800, Tom Marshall wrote:
  Can you use FTP to put precompiled ssh and scp binaries on the machine?
  $HOME/bin is usually a good place.  I've done this before with some success.
  
  ---
  The most effective Windows NT remote management tool?  A car.
 
 The remote machine is a web server with postgres.
 On the remote machine, I can use only ftp to put/retrieve data.
 This machine does't have telnetd, so... no logins...
 Other ports than 20,21,80 are firewall protected.
 
 As an workaround I can change by ftp my crontab over there and the commands 
 are executed!!! :-) I don't need telnet anymore!!!
 
 I think 'scp' is not possible because it asks my password interactively...