Skip to main content

All Questions

Tagged with
46 votes
2 answers
71k views

Can I create an SSH user which can access only certain directory?

I have a Virtual Private Server which I can connect to using SSH with my root account, being able to execute any linux command and access all the disk area, obviously. I would like to create another ...
Frantisek's user avatar
  • 1,936
133 votes
8 answers
1.1m views

How can I resolve the error "cannot execute binary file"?

When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I couldn't do anything in here. Commands such as halt, ...
superuser's user avatar
  • 4,117
6 votes
6 answers
105k views

SSH error ssh_exchange_identification: read: Connection reset by peer

I am trying to access ssh to a server but got "ssh_exchange_identification: read: Connection reset by peer". The same client works well when I move the computer to home but show the error when the ...
Tmx's user avatar
  • 289
4 votes
2 answers
10k views

Can I clone a root file system of a running server via ssh?

I want to make a backup of a running server. Every config files and everything without turning it off. How can I accomplish this? Is it ok to try copying it all? Because I had problems with the root ...
AAlvz's user avatar
  • 867
12 votes
6 answers
21k views

Unknown linux process with random command

I have a unknown process when I run top: When I kill the process it is coming again with another random name. when I check the rc.d levels and init.d there are many random name similar like this one ...
user1424059's user avatar
9 votes
1 answer
2k views

How to go through this duplicity stalled connection?

I am trying to set up backups via duplicity. Here is the use case: ~$ duplicity --encrypt-key CA17A4FA --progress --ssh-options="-l 8192" ~/Documents/ ssh://my.distant.host/save/docs/Documents Local ...
Creasixtine's user avatar
9 votes
4 answers
11k views

Vim and mouse with ssh from Mac to Linux

I certainly know it's possible to make the mouse work in Vim on a remote session to a Linux machine from my Mac, but I haven't figured out just how. Daily vim gives a tip on making it work but if I ...
Jonatan Littke's user avatar
7 votes
3 answers
40k views

Execute a script as root on every ssh login

Is there a possible way that I can execute a script, say abc.sh; as root user on every login to my system via SSH? I've gone through a similar question which says to add the script execution to ....
hjpotter92's user avatar
5 votes
1 answer
12k views

ssh key exists on remote, but still prompts for password?

Why is this happening? $ ssh-copy-id me@server /usr/local/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/local/bin/ssh-copy-id: ...
Richard's user avatar
  • 679
4 votes
2 answers
4k views

How to send one command to multiple PC's over LAN (linux)

O/S: Debian Hi, I've got multiple computers in a LAN network that I monitor remotely, they're all running the same hardware and software. To monitor them I simply ssh in to one computer and then ssh ...
Caleb Fetzer's user avatar
1 vote
2 answers
17k views

How to SSH into windows xp?

I have a debian based linux distro (Crunchbang) running on an old laptop (really old). I want to ssh into windows xp (on my pc) from my debian laptop and run windows programs in GUI from my laptop. Is ...
Ashildr's user avatar
  • 2,730