### Install react-native-ssh Source: https://github.com/azlyth/react-native-ssh/blob/master/README.md Provides installation instructions for the react-native-ssh library on both Android and iOS platforms. This includes standard npm package installation and linking, with specific instructions for iOS pod management. ```bash # Common installation for both platforms npm install react-native-ssh --save react-native link react-native-ssh # Additional steps for iOS # Add 'pod 'NMSSH', '~> 2.2.5'' to your ios/Podfile # If no Podfile exists, run 'cd ios && pod init' # Then run 'pod install' ``` -------------------------------- ### Execute SSH Command in React Native Source: https://github.com/azlyth/react-native-ssh/blob/master/README.md Demonstrates how to use the `SSH.execute` method to run a command on a remote server via SSH. It requires SSH configuration details and the command string, returning a promise that resolves with the command's output as an array of strings or rejects with an error. ```javascript import SSH from 'react-native-ssh'; const config = {user: 'bob', host: 'example.com', password: 'p4$$w0rd'}; const command = 'ls ~'; SSH.execute(config, command).then( result => console.log(result), error => console.log('Error:', error) ); // Example successful output: // ['file1.txt', 'server.py', 'script.sh'] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.