# SSH

# Force Client to Use Password Authentication

Key authentication should *always* be setup, but sometimes it is necessary to authenticate using passwords—even if for nothing else than to verify passwords are disabled.

```bash
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@domain.com

```

[source](https://unix.stackexchange.com/questions/15138/how-to-force-ssh-client-to-use-only-password-auth)

# Connect Without StrictHostKeyChecking (known_hosts)

Connects to a host without validating the host key using `~/.ssh/known_hosts` or adding the key to that file.

```bash
ssh -o "StrictHostKeyChecking no" user@host

```