• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

SSH Key / SSH Users

nry

Limp Gawd
Joined
Jul 10, 2008
Messages
409
I am learning to use linux a bit more, setting up development servers etc

Seem to be getting my head around it quite easily. But this one has got me.

I run virtualmin on my development server and the virtual servers create a user with ssh access.

With this user I want to be able to edit the authorized_keys file for that particular user (running git so need this!)

But if i cd to .ssh I get the error can't cd to .ssh
The folder appears in the users home directory, it also is owned by this user.

Second issue is that pressing tab docent auto complete folder names etc nor does it colour folders/files when showing a directory contents? How can I enable these two features

Thanks
 
ssh into the system and then run the command ls -altr and share the output. This is to check to see if what you are seeing there is a file or a folder.
 
$ ls -altr
total 76
-rw-r--r-- 1 ldev ldev 675 Nov 6 15:49 .profile
-rw-r--r-- 1 ldev ldev 3103 Nov 6 15:49 .bashrc
-rw-r--r-- 1 ldev ldev 220 Nov 6 15:49 .bash_logout
drwxr-xr-x 5 root root 4096 Nov 6 15:49 ..
drwxr-xr-x 2 ldev ldev 4096 Nov 6 15:49 homes
drwxr-x--- 2 ldev ldev 4096 Nov 6 15:49 logs
drwxr-x--- 2 ldev ldev 4096 Nov 6 15:49 tmp
drwxr-xr-x 2 ldev ldev 4096 Nov 6 15:49 fcgi-bin
-rw-r--r-- 1 ldev ldev 19 Nov 6 15:49 .stats-htpasswd
drwxr-xr-x 3 ldev ldev 4096 Nov 6 15:49 etc
drwxr-x--- 2 ldev ldev 4096 Nov 6 15:49 cgi-bin
drwxr-xr-x 2 ldev ldev 4096 Nov 6 15:49 awstats
-rw-r--r-- 1 ldev ldev 19 Nov 6 15:49 .awstats-htpasswd
drwxr-xr-x 14 root root 4096 Nov 6 15:57 webistrano
drwxr-xr-x 3 ldev ldev 4096 Nov 6 16:59 repos
drwx------ 2 ldev ldev 4096 Nov 6 17:07 .cache
drwxr-x--- 14 ldev ldev 4096 Nov 6 17:07 .
drw------- 2 ldev ldev 4096 Nov 6 17:40 .ssh
drwxr-x--- 4 ldev ldev 4096 Nov 6 17:43 public_html
$
 
touch .ssh/authorized_keys

gives what error?
 
Last edited:
cheers, solved that problem :)

Any idea on the tab button to complete folders?
 
Back
Top