SshService class
Constructors
- SshService({required FlutterSdkManager flutterSdkManager})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hostPlatform → HostRunnerPlatform
-
final
- processRunner → ProcessUtils
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addSshKeyToAgent(
File sshKey) → Future< void> - Adds the ssh key to the ssh-agent
-
copySshKeyToRemote(
File sshKeyFile, String username, InternetAddress ip) → Future< void> -
createPasswordLessSshConnection(
String username, InternetAddress ip, {bool addHostToKnownHosts = true}) → Future< bool> -
createSnappCliDirectory(
) → Future< Directory> - Creates a directory in the user's home directory to store the snapp_cli related files like ssh keys
-
generateSshKeyFile(
ProcessUtils processRunner, Directory snappCliDir) → Future< ({File privateKey, File publicKey})> - Generates a ssh key file in the snapp_cli directory
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
testPasswordLessSshConnection(
String username, InternetAddress ip, {bool addHostToKnownHosts = true}) → Future< bool> - Checks if the device is reachable via ssh
-
toString(
) → String -
A string representation of this object.
inherited
-
tryPingDevice(
String pingTarget, bool ipv6) → Future< bool>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited