login about faq

I tried to implement SSH function using your lib for iphone and wondering if its already fully supporting ftp commands. I found that when I execute command just like this : ssh > ftp > open (hostname) it returns a "command not found" message.

asked Jun 22 '12 at 09:18

chilkat's gravatar image

chilkat ♦♦

This clarification regarding FTP and SSH/SFTP may help:

"SFTP" is the Secure File Transfer Protocol over SSH. It is a protocol unrelated to the FTP protocol. The Chilkat SSH / SFTP component is used for "SFTP". SFTP is achieved by connecting to an SSH server at port 22.

On the other hand, the Chilkat FTP2 component is for FTP. FTP servers listen at port 21 (non-SSL/TLS) and port 990 (SSL). FTP over SSL (i.e. port 990) is called "FTPS".


answered Jun 22 '12 at 09:19

chilkat's gravatar image

chilkat ♦♦

Thanks for the answer @chilkat :) how about if the condition like this, I want to move files/folders from one remote server to another one using ftp protocol, is it possible to perform this action inside a ssh connection? Thanks

(Jun 22 '12 at 10:15) app13

It sounds to me like you're starting an SSH shell session via the SendReqShell method. Once the session begins, it's like typing at a terminal. When a string is sent via the ChannelSendString method, it's just like you typed it at an interactive terminal. That's why you need an LF (or CRLF) at the end of your command string. The remote shell executes the command, and any output is sent back over the session channel, which your program receives via the various ChannelRead and ChannelReceive methods.

When you send the "ftp" command, you're starting an interactive FTP session in the remote shell. (Note: This has nothing to do with Chilkat FTP2. It's the interactive FTP command available on any Linux/Unix operating system.) The output you'll get back is the FTP command prompt. You may then issue FTP commands and of course get the output from those commands, until you finally issue the "quit" or "exit" command (whichever it happens to be), and then you're back at the remote shell prompt, etc..


answered Jun 22 '12 at 17:02

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 22 '12 at 09:18

Seen: 4,689 times

Last updated: Jun 22 '12 at 17:02

powered by OSQA