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


Groups > comp.lang.java.programmer > #38383

Re: How to create a file in other machine home directory with help of other host username and password or IP adress?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Martin Gregorie <martin@mydomain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: How to create a file in other machine home directory with help of other host username and password or IP adress?
Date Fri, 15 Jun 2018 11:03:25 +0000 (UTC)
Organization albasani.net
Lines 39
Message-ID <pg06dt$mfv$1@news.albasani.net> (permalink)
References <1ee9d152-0cad-4905-becf-13e5c30c5368@googlegroups.com> <pftnvb$ti3$1@news.albasani.net> <7f51ae54-d418-435d-8e8b-134a27f7395b@googlegroups.com> <pftvvo$2br$1@news.albasani.net> <pfu2po$80v$1@gioia.aioe.org> <f664eca7-fbf2-4064-a581-611afa50a679@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net slYwSn0x7QSAqI7s8/8fBJm+WyQ8MlfHVsWRkueH8YDaDARy0Uc1+gGUaB9Q63UMmWDYgmdw/e9LcwXm1kt1Bv6FuQsriGprTiyskx8ouyG0FKeenjQF5RsBI5Lu4lXg
NNTP-Posting-Date Fri, 15 Jun 2018 11:03:25 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="+WvzbUYqZoc5cHmsptc8L+Vi8duDGUz5RQYjsSR+AHni9SrPrS4e/Ah4VHFsaHZlZi3t3LgVlnyMM8pZezXU63RZYypr38LZIm+DsYdGsOv+ufWa2k2YWCAaefcMofS1"; mail-complaints-to="abuse@albasani.net"
User-Agent Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2)
Cancel-Lock sha1:F/mkcWj5qlHzClLvhxNrf/IvTLg=
Xref csiph.com comp.lang.java.programmer:38383

Show key headers only | View raw


On Thu, 14 Jun 2018 22:02:32 -0700, siddareddy.moolam wrote:

> On Thursday, 14 June 2018 21:19:25 UTC+5:30, Arne Vajhøj  wrote:
>> On 6/14/2018 11:01 AM, Martin Gregorie wrote:
>> > Assuming that the target machine has an FTP server running, try
>> >     org.apache.commons.net.ftp.FTPClient
>> > 
>> > from
>> > 
>> > https://commons.apache.org/proper/commons-net/apidocs/org/apache/
commons/
>> > net/ftp/FTPClient.html
>> > 
>> > or if it has sshd running, try Jsch from http://www.jcraft.com/jsch/
>> > 
>> > Disclaimer: I haven't used either of these packages, only looked at
>> > their documentation.
>> 
>> I have used FTPClient.
>> 
>> It works fine.
>> 
>> Note that FTP protocol send password ion clear text. Not good security.
>> 
>> SFTP/FTPS is better in that regard.
>> 
>> Arne
> 
> i want to use SCP please help me for creating file in remote machine

Try using Jsch (link above) OR use ProcessBuilder to launch the scp 
program. Either way, let us now how it goes: its difficult to say 
anything more since we don't know what you're trying to achieve, what the 
constraints may be or why you want to do it.


-- 
Martin    | martin at
Gregorie  | gregorie dot org

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to create a file in other machine  home directory with help of other host username and password or IP adress? siddareddy.moolam@gmail.com - 2018-06-14 03:19 -0700
  Re: How to create a file in other machine  home directory with help of other host username and password or IP adress? Martin Gregorie <martin@mydomain.invalid> - 2018-06-14 12:44 +0000
    Re: How to create a file in other machine  home directory with help of other host username and password or IP adress? siddareddy.moolam@gmail.com - 2018-06-14 05:47 -0700
      Re: How to create a file in other machine  home directory with help of other host username and password or IP adress? Martin Gregorie <martin@mydomain.invalid> - 2018-06-14 15:01 +0000
        Re: How to create a file in other machine home directory with help of other host username and password or IP adress? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-14 11:49 -0400
          Re: How to create a file in other machine home directory with help of other host username and password or IP adress? siddareddy.moolam@gmail.com - 2018-06-14 22:02 -0700
            Re: How to create a file in other machine home directory with help of other host username and password or IP adress? Martin Gregorie <martin@mydomain.invalid> - 2018-06-15 11:03 +0000

csiph-web