When I type this command, the following message appears:  line 1 invalid key: -----BEGIN ... ~/.ssh/known_hosts is not a valid known hosts file. Not replacing existing known_hosts file because of errors
36164
According to  and my own understanding, the tilde expands to the home directory:  $ echo ~ /home/braiam   Now, whenever I want the shell expansion to work, i. e. using variable names such $FOO, and do not break due unexpected characters, such spaces, etc. one should use double quotes ":  $ FOO="some string with spaces" $ BAR="echo $FOO" $ echo $BAR echo some string with spaces   Why doesn't this expansion works with the tilde?  $ echo ~/some/path /home/braiam/some/path $ echo "~/some/path" ~/some/path
92166
I ssh on remote host but terminal performance is poor. Symbols I am typing are not shown immediately, but with some delay. Sometimes two symbols are shown at one time after delay.
121312
I'm trying to run the command ssh -o StrictHostKeyChecking=no but I'm a bit lost as to how to run it. I've tried running it from a shell script, but the output was the man page or settings that lists out all the parameters.   I then tried running that command from the shell (Cygwin) itself, but got the same man output. How do I run the command? Do I need to provide credentials or anything?
92177
I've a small home network up and running and managed to set up ssh. Can anyone tell me what I need to do to refer to one computer on the network from another by host name rather than IP address (which is what I'm doing now)?
62614
I have one file that contains the following:  10.48.29.68 doggy 10.65.8.184 kitty 10.48.15.104 froggy   I need to insert the contents of this file into my hosts file after the line bc group in the hosts file.  The hostfile of the server already has hundreds of entries. Bc is a group here in our hosts file. I want code that reads the ip addresses and hostnames in my file above and put those entries in the hosts file below the heading bc group.  The new file above should be written in the hosts file after keyword bc group.  For example, if my hosts file contains these lines:  10.59.12.232 bc4 10.48.29.68 xy9 bc group 10.63.71.136 bc2 10.63.71.214 bc3   I need to convert the hosts file to this:  10.59.12.232 bc4 10.48.29.68 xy9 bc group 10.48.29.68 doggy 10.65.8.184 kitty 10.48.15.104 froggy 10.63.71.136 bc2 10.63.71.214 bc3   I need to append all of the lines from my first file after the line bc group in my hosts file, and then continue with the remaining lines in the hosts file.
40523
What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using .
26522
There are a few SSH destinations I will frequently be connecting to and I'm wondering if rather than remember the IP address I can create a host alias for them.  I'd like to be able to use...  ssh -p xx user@domain.ssh  I've tried establishing this host in /etc/hosts and unless there's a service I needed to restart it had no effect.
91963
My /etc/ssh/sshd_config file has a line like:  AllowUsers jim@11.22.33.456   If I want to allow jim to use another IP addresses, how do I specify it?   Does it take the form of a comma separated list? Or, do add a similar line like   AllowUsers jim@new-ip-address   ?
100329
I recently set up a new server with Ubuntu karmic 9.10, and when I created my home directory I chose to make it encrypted. Now, after loading my authorized_keys file into ~/.ssh, it isn't recognized because my home directory isn't decrypted until after I log in. Is there a way to make SSH keys work with encrypted home directories under Ubuntu?
111162
Is it possible to change the hostname in Windows 2003 from the command line with out-of-the-box tools?
88049
To get my public key onto a server I normal copy the contents of my public key, then SSH into the server, then I run vi .ssh/authorized_keys, then paste my key into the file and save.  There has got to be an easier, one step way using SCP or something like that. Of course I want to append my key to authorized_keys, not overwrite it and the permissions of authorized_keys needs to remain at 600
25358
How to mount a remote directory using SSH to be available  same as if it is  a local directory?
61720
I ssh-ed into my webhost's directory, and tar-ed the webapp to download. When I try to mv to ~/mydirectory/backups or /home/mydirectory/backups, it defines the "home" as my root on the webhost that I'm ssh'ed into.  How do I mv in ssh to a local drive while still being inside the webhost's system?
38794
I generated a key and copied it to my target:  ssh-keygen ssh-copy-id username@hostname   I left the the location of the key as default and did not set any passphrase.  For a small while after that, I was able to ssh username@hostname without being prompted for a password, and then it stopped working for some reason.
69227
How do I set up SSH so I don't have to type my password when connecting to a host?
70633
From the terminal I type: ssh user@ip and then it prompts for a password.  Is there a way to specify the password in the ssh command itself?
25367
I changed my SSH port in the /etc/ssh/sshd_config file and then restarted the ssh service. I implemented fail2ban and updated the port to my SSH under that config. I also then implemented the UFW firewall and allowed incoming connections to my new SSH port.  However, when I try and login with my SSH key using ssh -i /Users/myuser/.ssh/vpsssh user@555.555.555.555 it's trying to connect to port 22 instead of the defined port I have.