An official website of the United States government US flag signifying that this is a United States federal government website

Using SSH

Using SSH

You can use SSH to inspect how your app is operating, transfer files via SCP, or interact directly with your bound services. More information about one-off tasks.

You can get a shell via the cf ssh command, which lets you securely log in to an application instance where you can perform debugging, environment inspection, and other tasks.

Your application environment is not completely setup when you log in. You’ll probably need to configure your session to match your application’s environment in order to debug your application.

You can interact directly with the services bound to your application via port-forwarding. This allows you to access those services using native clients on your local machine. The Service Connect plugin makes this even easier.

cf ssh uses port 2222. If your network blocks port 2222, you may receive an error message such as Error opening SSH connection.