One-shot: connects, checks whether a path exists, and closes the session.
Connect options plus the path to check.
path
true if the path exists, else false.
true
false
If the connection or handshake fails.
If authentication is rejected.
1.0.2
import { exists } from 'edgeport/ssh';const there = await exists({ hostname: 'h', username: 'u', password: 'p', path: '/etc/hosts' }); Copy
import { exists } from 'edgeport/ssh';const there = await exists({ hostname: 'h', username: 'u', password: 'p', path: '/etc/hosts' });
One-shot: connects, checks whether a path exists, and closes the session.