Installation
This guide will walk you through installing the React Native SSH SFTP library and configuring it for both iOS and Android platforms.Install the Package
Install the library using your preferred package manager:iOS Setup
Update your Podfile
The library requires a specific fork of NMSSH that includes an updated version of libssh. Add the following line to your
Podfile located at ./ios/Podfile:ios/Podfile
We use aanah0’s fork of NMSSH to get a required later version of libssh.
Troubleshooting iOS
iOS Simulator Not SupportedThis package currently doesn’t support the iOS simulator. You will need to test on a physical iOS device. See this issue for more information.
Android Setup
No additional configuration is required for Android. The library works out of the box after installation.The Android implementation uses JSch (from the Matthias Wiedemann fork) for SSH/SFTP functionality.
Linking
This library uses React Native autolinking (introduced in React Native 0.60+). Manual linking is not required.If you’re using React Native 0.60 or later, the library will be automatically linked. Simply rebuild your app after installation.