These are chat archives for IndySockets/Indy

15th
Jan 2016
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:16 UTC
Hi!
Some one could help me?
I use a program WISCP to tranfer a file to my server.
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:16 UTC
and?
Hi :)
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:17 UTC
I am sorry. Hi
nice too meet you
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:17 UTC
Likewise: You ask for help, but you tell what you need help with.. :)
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:17 UTC
I need to use SFTP . I can send a file with componet Indy 10
Can I send?
Kudzu
@czhower
Jan 15 2016 17:18 UTC
Indy has FTP of corse, but I dontt think we have SFTP. Eldso or StremSec might have SFTP support or plugins for Indy to do so.
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:18 UTC
are you using ssh-base ftp?
SFTP is double: it can be normal ftp, but using ssl, or can be filetransfer via an sshtunnel
Remy Lebeau
@rlebeau
Jan 15 2016 17:19 UTC
Indy supports FTPS (FTP over TLS) but not SFTP (FTP over SSH). Indy does not support SSH at all
SSH is a pretty complex bugger.
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:20 UTC
@rlebeau the point i was trying to make (as well), is that "sftp" and "ftps" are used for both..
Kudzu
@czhower
Jan 15 2016 17:20 UTC
It also tends to be pretty Linux centric.
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:20 UTC
On Winscp I needo to choose SFTP and I use a Login and Passworld , only
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:20 UTC
@czhower not really: windows iot supports powershell and ssh, connecting using ssh is instantaneously, connecting via powershell about a minute.. ;)
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:20 UTC
and I can connect to server
Kudzu
@czhower
Jan 15 2016 17:21 UTC
yes, its on Windows.. but its not commoly used in Windows servers etc.. SSH tends to be Linux centric in its use.
99% of the time somene asks about SSH, its to conenct to something on Linux.
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:21 UTC
The server is linux
Kudzu
@czhower
Jan 15 2016 17:21 UTC
its becuase Linux core uses SSH for shell etc... so its considerd a core funciton of Linux
See :)
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:22 UTC
Is it not possible to use INDY 10 to connect?
Kudzu
@czhower
Jan 15 2016 17:22 UTC
ftp ssl yes, ssh no
you might be able to enable ftp ssl on your linux side
or y9uo coudl use putty etc to make the SSH tunnel and use indy over it maybe
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:24 UTC
@czhower no, its a special protocol
Kudzu
@czhower
Jan 15 2016 17:24 UTC
ssh is like a tunnel.. vpn of sorts. .then ftp run so top. but since SSH is pretty much a linux feature.....
yes for FTP it might be becuase of all the ports.
Matthijs ter Woord
@mterwoord
Jan 15 2016 17:24 UTC
it supports tcp tnnels, but also system tunnels
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:24 UTC
If I enable FTP SSL the information can be send in security :?
Kudzu
@czhower
Jan 15 2016 17:24 UTC
yes
ssl will encrypt the traffic
and ssl is widespread.. not Linux centric
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:30 UTC
Do you know another component to do this? Send a File using SFTP ?
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 17:57 UTC
@ftp ssl yes, ssh n
@czhower you said: " I can use putty to send a file with ssh and then use INDY to use putty? "
I understand you , correctly?
How can I do this?
Remy Lebeau
@rlebeau
Jan 15 2016 18:14 UTC
In Putty, you can set up SSH tunnels for specific ports. In TIdFTP, you can configure its data ports. You may have to set Putty to act as a SOCKS proxy (https://winscp.net/eng/docs/guide_tunnel#ftp_putty) and then configure TIdFTP to connect to the target server through that proxy.
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 18:18 UTC
Thanks for help
=)
Matthijs ter Woord
@mterwoord
Jan 15 2016 18:23 UTC
@rlebeau socks proxy shouldn't be necessary, as using poutty you basically get a tcp forwarder
ie, you connect to 127.0.0.1:PORT then
Remy Lebeau
@rlebeau
Jan 15 2016 18:26 UTC
Maybe for active-mode transfers, where TIdFTP is dictating the port for the server to connect to. If Putty has a corresponding tunnel for that port, then sure. But for passive-mode transfers, where the server decides the port, you probably need Putty to act as a proxy so it can control which port it asks TIdFTP to connect to.
Matthijs ter Woord
@mterwoord
Jan 15 2016 18:27 UTC
@rlebeau shoot. forgot about that. so true! :)
ivanlorenzetti
@ivanlorenzetti
Jan 15 2016 19:55 UTC
Thanks a lot for help me