Search code examples
sshcmdip-address

How to escape @ in password when doing ssh to remote server?


I want to do ssh to remote server. So the command is

ssh username:password@ipaddress

But if my password contains @ then this command creates a problem. Obviously I can enter password in next step when prompt comes but I want to do in single step as displayed above. How can I escape the @ character?


Solution

  • You can use the url encoded version of @ sign: %40