Safe Haskell | None |
---|---|
Language | Haskell98 |
- setSshdConfig :: String -> Bool -> Property
- permitRootLogin :: Bool -> Property
- passwordAuthentication :: Bool -> Property
- hasAuthorizedKeys :: UserName -> IO Bool
- restarted :: Property
- randomHostKeys :: Property
- hostKeys :: Context -> Property
- hostKey :: SshKeyType -> Context -> Property
- keyImported :: SshKeyType -> UserName -> Context -> Property
- knownHost :: [Host] -> HostName -> UserName -> Property
- authorizedKeys :: UserName -> Context -> Property
- listenPort :: Int -> RevertableProperty
Documentation
setSshdConfig :: String -> Bool -> Property Source
permitRootLogin :: Bool -> Property Source
hasAuthorizedKeys :: UserName -> IO Bool Source
randomHostKeys :: Property Source
Blows away existing host keys and make new ones. Useful for systems installed from an image that might reuse host keys. A flag file is used to only ever do this once.
hostKey :: SshKeyType -> Context -> Property Source
Sets a single ssh host key from the privdata.
keyImported :: SshKeyType -> UserName -> Context -> Property Source
Sets up a user with a ssh private key and public key pair from the PrivData.
knownHost :: [Host] -> HostName -> UserName -> Property Source
Puts some host's ssh public key into the known_hosts file for a user.
authorizedKeys :: UserName -> Context -> Property Source
Makes a user have authorized_keys from the PrivData
listenPort :: Int -> RevertableProperty Source
Makes the ssh server listen on a given port, in addition to any other ports it is configured to listen on.
Revert to prevent it listening on a particular port.