Loading...
Loading...
Establish and manage SSH connections to remote machines, including key generation, configuration, and file transfers. Use when connecting to remote servers, executing remote commands, or transferring files via SCP.
npx skill4agent add openhands/skills sshssh username@hostnamessh-keygen -t ed25519 -f ~/.ssh/key_name -C "comment" -N ""ssh-copy-id -i ~/.ssh/key_name.pub username@hostnamessh -i ~/.ssh/key_name username@hostnamemkdir -p ~/.ssh
cat > ~/.ssh/config << 'EOF'
Host alias
HostName hostname_or_ip
User username
IdentityFile ~/.ssh/key_name
Port 22
ServerAliveInterval 60
EOF
chmod 600 ~/.ssh/configssh alias-p PORT-X-L local_port:remote_host:remote_port-R remote_port:local_host:local_port-N-f-vscp /path/to/local/file username@hostname:/path/to/remote/directory/scp username@hostname:/path/to/remote/file /path/to/local/directory/scp -r /path/to/local/directory username@hostname:/path/to/remote/directory/eval "$(ssh-agent -s)"ssh-add ~/.ssh/key_namesystemctl status sshdnc -zv hostname 22ssh -vvv username@hostnamechmod 600 ~/.ssh/key_namessh-keygen -R hostname# Set correct permissions for private keys
chmod 600 ~/.ssh/id_ed25519
# Set correct permissions for public keys
chmod 644 ~/.ssh/id_ed25519.pub
# Set correct permissions for SSH directory
chmod 700 ~/.ssh