ssh: Could not resolve hostname: Name or service not known code example
Example 1: ssh: Could not resolve hostname : Name or service not known on scp command
scp $MY_FILE ubuntu@192.128.23.23
Example 2: unable to resolve host s: Name or service not known
You may add your domain name to your /etc/hosts
like this
knguyen@knguyen:~$ cat /etc/hosts
127.0.0.1 knguyen