The guide below will help you to install OpenSSH on your iPhone, iPod touch and iPad through Cydia Installer. Before proceeding to install OpenSSH confirm it your iDevice is jailbroken, but if not then checkout links below to our jailbreak guides.
Do Untethered Jailbreak of iOS 5.0.1 with PwnageTool 5.0.1
Redsn0w 0.9.10b3 for UnTethered iOS 5.0.1 Jailbreak
How to Do Untethered Jailbreak of iOS 5.0.1 with Corona
Install OpenSSH on iPhone, iPod Touch and iPad
Tap “Cydia” from springboard
Tap “Search” tab and search for “OpenSSH”
When “OpenSSH” appears in search result, tap on it
Click “Install” > ” Confirm” buttons
On install process successful completion, click “Return to Cydia” button
Done! now you can access filesystem of your iDevice through SSH by using username: root and password: alpine.