Connecting to the FTP Server
To create connection between your PC and a remote computer, carry out the following on the Login as tab:
- Select a FTP server (Host ID) in the list box of hosts (defined in your hosts file). Alternatively, you can enter the host address for the server (which can be either the DNS entry or its IP address) in the HostID edit field.
Note that a host name you specify here may not result in the same remote host name due to different name-address DNS translations in different LANs. You should specify the host name or IP address for a remote host in a LAN that are known inside that LAN for that host.
- In the User Name edit field, enter your login name that is required by the selected server to access your FTP account.
If you do not have an account with the selected server, and it accepts anonymous FTP requests, enable the Anonymous check box.
- In the Password edit field, enter the password that is required by the server to access your FTP account. The characters of the password will appear as asterisk (*) symbols for security purposes unless you chose the anonymous login option.
- Specify your Account (if required).
If the Account field is specified, the account command will be relayed to the remote server after the login sequence is completed if the remote server did not require it for logging in.
- In the Initial Directory field, enter the path on the server in which you want to begin. If this field does not contain a value, the root directory will be listed by default.
- Select an operating system type of the remote computer from within the Server Type list box. The UNIX system type is used by default. (Currently supported types are: UNIX, DOS, VMS, MVS, OS/2, SI NT FTPD, IBM VM, AS/400).
- Choose a protocol type for connection.
- Select FTP to use the standard FTP protocol for connection with
a remote FTP server.
- Select SFTP mode to use the SFTP protocol for connection with
a remote SFTP server.
- Enable the FTP via XWP SOCKS4 check box if you want FTP operations
to be done through one of secure connection channels.
Otherwise, disable it if you want to use direct insecure access to remote hosts.
See Notes below.
- Select NFSbrowser to use the standard NFS protocol for connection
with a remote NFS server.
- Click the Connect button to establish the connection.
Alternatively, you can select a proper connection profile name (under which you may earlier have saved your connection settings, so you need not set up them each time you want to connect to the remote host) and press the Connect button (see the Profile section below).
As a result of successful connection with your FTP server, you will see your home
directory structure on the Remote files tab.
In the FXP/FTP Connect mode, as a result of successful connection with your
second FTP server, you will see your home directory structure on the left panel.
The SSH File Transfer Protocol (SFTP) provides secure file transfer
(and more generally file system access) functionality over any reliable data stream,
such as a channel in the SSH2 protocol.
It is the standard file transfer protocol for use with the SSH2 protocol.
This protocol assumes that it runs over a secure channel, and that the server has already
authenticated the user at the client end, and that the identity of the client user is externally
available to the server implementation.
With the FTP via XWP SOCKS4 check box enabled, the SSH Forwarding window will appear when you click the Connect button:
that contains a number of actual SSH1/SSH2 connections you have previously established
(for example, by the SSH1 or SSH2 Client of the Telnet_SSH program).
(See Starting an SSH Session in the Starting and Terminating Telnet_SSH section on how to establish secure connections).
The Refresh button allows you to renovate the list.
From within the list, select a desired remote host (active SSH server) for using SSH connection
and press OK.
The "Dynamic Port Forwarding" feature of the Telnet_SSH/SSH1 or Telnet_SSH/SSH2 Client and FTP Client will automatically be used for both FTP control and FTP data connections, so you need not set up any port forwarding manually. In the message box, you can see what ports will be used for FTP control and FTP data connections in the current FTP session due to Dynamic Port Forwarding (e.g., 8009 and 8010 respectively). This gives you a local representation of your remote FTP connection.
In this case, the Passive Transfers mode will always be enabled since your FTP client will try to connect to the FTP server with using a locally created listening socket.
If the FTP server and SSH server you are using in a FTP session are on the same remote host then the HostID field can contain "localhost" or "127.0.0.1". This is more preferable than its actual IP address in most cases (but depends on how the host has been configured).
You can use the netstat utility to watch your network connections.
Example of initiating the FTP session via SSH
First, make sure that:
- your remote host is accessible from your PC
- your remote host supports the FTP protocol for your PC
- sshd-daemon (or sshd2-daemon) is running on your remote host
- your PC is accessible from your remote host.
If OK, then you may initiate the FTP session via SSH like the following steps:
1. Initiating the Telnet_SSH session
- Start Telnet_SSH by double-clicking on the Telnet_SSH icon from the XSecurePro64 Programs' folder (the Telnet Connect Host window should appear)
- Choose SSH-1 (or SSH-2) in the Interface section
- Enter the network name or IP address for the remote host you want to connect to
- Change the default SSH port number if required
- Click OK to establish connection with the remote host (the SSH Authentication window should appear)
- Choose to Use plain password to log in
- Specify the login information required for your host system: User name and Password in the Passphrase field
- Click OK to log in to the remote host (the Telnet_SSH window should appear)
2. Initiating the FTP session
- Launch FTP by double-clicking on the FTP icon from the XSecurePro64 Programs' folder (the FTP window should appear)
- Enter localhost as the network name or 127.0.0.1 as the IP address in the Host ID field in the Login as tab
- Enter your User Name (e.g., John)
- Enter your Password required for your login to the remote system (e.g., Smith)
- Check the Use SSH Forwarding check box
- Specify other required settings and options
- Click the Connect button (The SSH Forwarding window should appear)
- Select the line with the SSH connection to your remote host from the list box under the Use SSH Forwarding check box
- Click OK.
The FTP session to the remote host will be opened through the encrypted connection. In the Remote files tab, the list of directories and files from your home directory on your remote host should be displayed.