ssh
Setting the default ssh key location
If you are only looking to point to a different location for you identity file, the you can modify your ~/.ssh/config file with the following entry: IdentityFile ~/.foo/identity man ssh_config to find other config options.
Set SSH connection timeout
The problem may be that ssh is trying to connect to all the different IPs that www.google.com resolves to. For example on my machine: # ssh -v -o ConnectTimeout=1 -o ConnectionAttempts=1 www.google.com OpenSSH_5.9p1, OpenSSL 0.9.8t 18 Jan 2012 debug1: Connecting to www.google.com [173.194.43.20] port 22. debug1: connect to address 173.194.43.20 port 22: Connection timed out … Read more
Ubuntu-ssh – – WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED [closed]
use the following command which removes the old keys from .ssh/known_hosts file ssh-keygen -R <host>
How to preserve files original creation date?
Use scp with the -p option. -p Preserves modification times, access times, and modes from the original file. Example command copying a file from local to remote server: scp -p /home/mylocaldata/test.txt remote.example.com:/home/remote_dir Note that this will not preserve user and group only permission flags (rwx and such).
What is actually in known_hosts? [closed]
This file is, effectively, your personal Certificate Authority. It is the list of all SSH server host public keys that you have determined are accurate. Each entry in known_hosts is one big line with three or more whitespace separated fields as follows: a. One or more server names or IP Addresses, joined together by commas. … Read more
How to access SSH keys for a Google Cloud Platform Compute Engine VM instance?
Answer recommended by Google Cloud