IBM i example: Configure an RSE Connection
There are three alternative methods that may be used to create a Remote Systems Explorer connection.
- In Studio, switch to the Remote System Explorer view.
- Right click in the Remote Systems tab, and select New Connection.Select SSH Only and click Next.For Host name, put the ip address for your i5.
- Connection name will autofill with the host name, but you can change it to something more descriptive.
- Click Finish.
- You may be prompted to set up an SSH directory and list of known hosts in your Windows user directory. If so, accept those options.
- When prompted, use your user profile and password to log on as you would to log into a 5250 session (see note).
V6R1 and higher:
For V6R1 and higher, the sshd daemon can be started with CL command STRTCPSVR SERVER(*SSHD) and ended with ENDTCPSVR SERVER(*SSHD). If they do not exist, the host key files will be generated when the sshd daemon is started.
To run the SSHD daemon on i5/OS:
- The userid that starts the daemon must have *ALLOBJ special authority.
- The userid that starts the daemon must be 8 or fewer characters long.
You can start the sshd daemon with this CL command:
Or you can use the command sshd in the PASE shell. Run the following command in i5/OS to start the PASE shell:
Then, in the PASE shell, run this command:
To verify the SSHD daemon is running, enter this command in the PASE shell:
The list of active processes should include 'sshd':
PID TTY STAT TIME COMMAND
20855 – A 0:26 /usr/local/Zend/Platform/bin/cache_clean -l /usr/local
20857 – A 0:01 /usr/local/Zend/Platform/bin/collector_center /usr/loc
20858 – A 0:00 /usr/local/Zend/Platform/bin/collector_center /usr/loc
20859 – A 0:00 /usr/local/Zend/Platform/bin/collector_center /usr/loc
23022 – A 0:00 sshd
23159 – A 0:08 /usr/local/Zend/apache2/bin/httpd -k start
23160 – A 0:00 /usr/local/Zend/apache2/bin/httpd -k start
Host Keys Instructions:
Run the following command in i5/OS to start the PASE shell:
Then, in the PASE shell, run these commands:
Mapped Network Drive Method:
Set up a mapped network drive, and access it within Studio as you would a local drive. You can learn how to set up a mapped network drive here:
Mapping a network drive to your server
Note that in Studio version 8, the local connection (including mapped network drives) is no longer shown in the RSE perspective. However, a mapped network drive can be used to set the location for a new project. So, the mapped drive does not show in RSE, but it is still a valid way to connect to IFS for Studio.
In the PHP perspective, in the PHP Explorer pane, right click and select New -> PHP Project. In the dialog that appears, select the 'Create project at existing location (from existing source)' radio button. Browse, and find the mapped drive in the Browse dialog, and navigate to the folder you want to use on the IFS.
FTP Unix Parser Method:
1. Sign on to a 5250 session. From the command line: WRKSBSJOB SBS(QSYSWRK)
2. Scroll down until you see the QTFTPnnnnn jobs. Stay on this display as you do the following commands.
3. CHGFTPA NAMEFMT(*PATH) CURDIR(*HOMEDIR) LISTFMT(*UNIX)
4. ENDTCPSVR SERVER(*FTP)
5. Use F5 to ensure that all QTFTPnnnnn jobs have ended.
6. STRTCPSVR SERVER(*FTP)
7. Go to Studio for Eclipse, and find the FTP connection in the Remote Systems tab, which can be seen in the PHP and Remote Systems Explorer perspectives.
8. Right click the FTP connection, and select the option to Disconnect, if available.
9. Right click the FTP connection, and select Properties.
10. Under Connector Services, highlight FTP Settings.
11. Find the parser property, and click where it says AUTO, then click the down arrow, to see a list.
12. Select org.eclipse.rse.ftp.parser.Unix from the list (or just type it in if the list does not appear).
13. Click OK.
14. Right click the FTP connection, and select Connect. If needed, enter the User and Password when prompted. Expand Files to find the IFS root directory, which should now display correctly.