M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Recent Posts
Archives
- January 2016 (2)
- October 2014 (2)
- September 2014 (15)
Live and Learn
Recently I installed Cygwin on Win8.1.
When I try to ssh to my router in Cygwin terminal, it let me to input password.
In fact I am using private/public key files for ssh. Let us find what’s going on.
$ cd .ssh $ ls -al drwx------+ 1 wenjian None 0 9月 28 20:37 ./ drwxrwxr-x+ 1 wenjian None 0 9月 28 20:47 ../ -rw-rw-rw- 1 wenjian None 668 9月 9 2013 id_dsa
Got it. Try to fix it:
$ chmod -c 600 id_dsa mode of "id_dsa" changed from 0666 (rw-rw-rw-) to 0600 (rw-------) $ ls -al id_dsa -rw-rw---- 1 wenjian None 668 9月 9 2013 id_dsa
chmod 600 failed !!!
Here is the solution:
$ chgrp -R Users id_dsa $ chmod -c 600 id_dsa mode of "id_dsa" changed from 0666 (rw-rw----) to 0600 (rw-------) $ ls -al id_dsa -rw------- 1 wenjian Users 668 9月 9 2013 id_dsa
Recent Comments