<mohammadrony>

SSH Login

Provider password for ssh

sshpass -p '<password>' ssh <user>@<host>

Login with identity file

ssh -i ~/.ssh/<file> <user>@<host>
ssh -i ~/.ssh/<file> -o IdentitiesOnly=yes <user>@<host>

Manage login to unknown hosts

ssh -o StrictHostKeyChecking=no <user>@<host>

For ssh-dss algorithm (legacy version)

ssh -o HostKeyAlgorithms=+ssh-dss <user>@<host>

Use password authentication

ssh -o PreferredAuthentications=password <user>@<host>

Using key exchange algorithm

ssh -o KexAlgorithms=curve25519-sha256 <user>@<host>