Get $100 credit to create, test and run your vps on digitalOcean from here
You manage the servers and you have to login for dirrerent vps with different password. If there is any system that you don't have to enter the password and you also login securly, then is not it helpful?
Execute the below command in your terminal and simply go forward by only pressing enter key from keyboard.
ssh-keygen -t rsa
Login to the VPS server and run the following commands.
cd ~
mkdir .ssh
Now exit from the server terminal and execute the below code. Replace the userName to yours that is defined in your local computer and change server user name (for my case sayan) and public IP address(for my case 165.232.188.124) according to yours. Then hit enter and have to type the password. The below code is for windows user. For mac and linux users, follow here
scp C:\Users\userName\.ssh\id_rsa.pub [email protected]:~/.ssh/authorized_key
After the successful execution of the above code, you can login without entering the password.
Now enter the below command by changing the required username and IP address and you should login to the vps.
Execute the below command
New-Item $profile -Type File -Force
Execute the command.
notepad $profile
This will open a notepad editor and add the following commands to the notepad. You can add functions as many as you want. Only change the username and the IP address. Then save the notepad and close it. ALso close the powershell.
echo "Hello Sayan, Welcome to PowerShell. Your profile works!"
function personal{
Start-Process ssh [email protected]
}
function client1{
Start-Process ssh [email protected]
}
function client2{
Start-Process ssh [email protected]
}
Reopen the powershell and type only personal(If you don't restart the powershell, it will not work). You can see that you are logged in the VPS.