Re: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-28 Thread Richard Gaskin via use-livecode

Sannyasin Brahmanathaswami wrote:

> If using
> sftp://username:password@mydomain/sompath/somefile.ext
> is the user name and password "sniffable"
>
> I am under the impression it is not as SFTP encrypts *before* sending
> out the pipe.
>
> Is that understanding correct?

Yes, that's the key benefit of SFTP and FTPS over the older FTP, since 
the latter is effectively handing control of you server over to any 
man-in-the-middle.


FTPS works similarly to HTTPS, and requires an SSL certificate on the 
server.  SFTP uses SSH, and does not requires a cert.  The differences 
are summarized here:



But either will establish a secure channel with the server before 
negotiating login.


One challenge with either is that unless you use shared SSH keys with 
SFTP (suitable only for admin tasks), they require embedding login 
credentials in code.  LC's script encryption isn't bad, but it's 
generally good practice to avoid embedded passwords whenever practical 
(everything is crackable, sometimes we forget to encrypt a stack, etc.).


Given that, and the general inefficiency of FTP for cases where you just 
want to move data from client to server, more commonly that need is 
addressed with an HTTP API on the server, which can be done with any 
server process that allows scripting, including PHP, Perl, Python, 
JavaScript, or a LiveCode Server CGI, as described here:



FTP is great for ad hoc access to server files, like when you need to 
navigate among files, etc.  But there are better tools for most other 
use-cases, like rsync and scp for admin tasks and HTTP for most 
non-admin tasks.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-27 Thread Sannyasin Brahmanathaswami via use-livecode
Richard Gaskin via use-livecode"  wrote:

("ftp://FTPusername:ftppassw...@mydomain.on-rev.com/somepath/somefile.ext;)

Would that be "ftps://..."?

@ Charles

I have the same (or perhaps similar) question. If using

sftp://username:password@mydomain/sompath/somefile.ext

is the user name and password "sniffable"  

I am under the impression it is not as SFTP encrypts *before* sending out the 
pipe.  

Is that understanding correct? 

BR

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-25 Thread Charles Warwick via use-livecode
Hi John,

Certain characters in usernames and passwords need to be URL encoded if you 
want to include them in a URL string.  The @ character is one of them.

Try something like his:

put urlencode("autoim...@jdoe.on-rev.com") into tUser 
put urlencode("x") into tPass
put the last image into URL 
("ftp://"&":"&"@jdoe.on-rev.com/autoimage/images/newimage.jpg”)

Cheers,

Charles

-- Sent from my iPhone

On 26 May 2017 at 08:32:55 AEST, JOHN PATTEN via use-livecode 
 wrote:

Hi All,

I’m trying to ftp and image from the photo gallery on iOS to my on-rev account. 
 I’m using the example:

on mouseUp
mobilepickphoto “library"
--upload to FTP
put the last image into url 
("ftp://autoim...@jdoe.on-rev.com:xx...@jdoe.on-rev.com/autoimage/images/newimage.jpg”)
--Informs of successful or unsuccessful upload
if the result is not empty then
answer "url put failed:" && the result
else
answer "success!”
end if
end mouseUp
——

It is throwing and an error, tsnetterr:(67) Access Denied: 530.

I can use Fetch (a mac FTP client) just fine with the same credentials and 
upload an image with no problem. I don’t even have to give Fetch the full ftp 
directory, just the host.

What am I missing?

Thank you!

John Patten
SUSD
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-25 Thread Richard Gaskin via use-livecode

Ralph DiMola wrote:

> This works for me.
>
> put MyVar into url 
("ftp://FTPusername:ftppassw...@mydomain.on-rev.com/somepath/somefile.ext;)


Would that be "ftps://..."?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


RE: FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-25 Thread Ralph DiMola via use-livecode
John,

This works for me.

put MyVar into url 
("ftp://FTPusername:ftppassw...@mydomain.on-rev.com/somepath/somefile.ext;)

I looks like your using your email address for the username. Create an FTP 
account in cPanel FTP setup. Don't use the built in one or someone could sniff 
the password to your on-rev account.

Ralph DiMola
IT Director
Evergreen Information Services
rdim...@evergreeninfo.net


-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
JOHN PATTEN via use-livecode
Sent: Thursday, May 25, 2017 6:33 PM
To: How to use LiveCode
Cc: JOHN PATTEN
Subject: FTP from iOS but getting tsneterr: (67) Access denied: 530

Hi All,

I’m trying to ftp and image from the photo gallery on iOS to my on-rev account. 
 I’m using the example:

on mouseUp
mobilepickphoto “library"
--upload to FTP
put the last image into url 
("ftp://autoim...@jdoe.on-rev.com:xx...@jdoe.on-rev.com/autoimage/images/newimage.jpg”)
--Informs of successful or unsuccessful upload if the result is not empty then 
answer "url put failed:" && the result else answer "success!”
end if
end mouseUp
——

It is throwing and an error, tsnetterr:(67) Access Denied: 530.

I can use Fetch (a mac FTP client) just fine with the same credentials and 
upload an image with no problem. I don’t even have to give Fetch the full ftp 
directory, just the host.

What am I missing?

Thank you!

John Patten
SUSD
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

FTP from iOS but getting tsneterr: (67) Access denied: 530

2017-05-25 Thread JOHN PATTEN via use-livecode
Hi All,

I’m trying to ftp and image from the photo gallery on iOS to my on-rev account. 
 I’m using the example:

on mouseUp
mobilepickphoto “library"
--upload to FTP
put the last image into url 
("ftp://autoim...@jdoe.on-rev.com:xx...@jdoe.on-rev.com/autoimage/images/newimage.jpg”)
--Informs of successful or unsuccessful upload
if the result is not empty then
answer "url put failed:" && the result
else
answer "success!”
end if
end mouseUp
——

It is throwing and an error, tsnetterr:(67) Access Denied: 530.

I can use Fetch (a mac FTP client) just fine with the same credentials and 
upload an image with no problem. I don’t even have to give Fetch the full ftp 
directory, just the host.

What am I missing?

Thank you!

John Patten
SUSD
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode