A library that allows a React Native app to run commands over SSH.
This library provides a single method: SSH.execute. Given SSH credentials
and a command, a promise is returned. This promise resolves to the command's
output as an array of strings.
import SSH from 'react-native-ssh';
config = {user: 'bob', host: 'example.com', password: 'p4$$w0rd'};
command = 'ls -l ~';
SSH.execute(config, command).then(
result => console.log(result),
error => console.log('Error:', error)
);
// A successful run would output:
// ['file1.txt', 'server.py', 'script.sh']
npm install react-native-ssh --savereact-native link react-native-sshnpm install react-native-ssh --savereact-native link react-native-sshpod 'NMSSH', '~> 2.2.5' to your Podfile and install. If you don't have a Podfile:cd iospod initpod installios/hooks.xcworkspace in XCodehooks > Libraries > RNSSH.xcodeproj in the Project NavigatorRNSSH under Targets$(SRCROOT)/../../../ios/Pods/Headers/Public to Header Search Paths and make it recursive$ claude mcp add react-native-ssh \
-- python -m otcore.mcp_server <graph>