All Questions
217
questions
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, ...
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 ...
39
votes
5
answers
34k
views
How risky it is to have a personal server with ssh opened to the Internet?
Title continuation would be “while having limited knowledge of Internet security”.
I have recently set up a small server with a low end computer running debian with the aim to use it as a personal ...
37
votes
6
answers
16k
views
how to disable SendEnv variables set in ssh_config from ~/.ssh/config
I couldn't find that anywhere so I'm wondering am I the only one hitting such issue.
By default ssh on Red Hat and Debian at least has a ssh_config with SendEnv option passing LC* and LANG variables ...
29
votes
5
answers
35k
views
How do I make sshfs work in Debian? (I get /dev/fuse: Permission denied )
I've moved from Ubuntu to Debian on a machine and all my sshfs mounting scripts fail with
fuse: failed to open /dev/fuse: Permission denied
now. Am I missing something simple?
28
votes
4
answers
28k
views
Running ssh-keygen without human interaction?
Would it be possible to run ssh-keygen without human interaction?
I have a shell script that takes care of server deployment from start to finish, but ssh-keygen is the only remaining piece that ...
19
votes
2
answers
9k
views
Is it a good idea to put "screen -r" in my .bashrc?
I'd like to use screen to keep ssh sessions alive on my server. It would be nice if I could automatically resume any running session for my user when I log in. The straightforward way to do this would ...
13
votes
1
answer
18k
views
How to resume or abandon an apt-get dist-upgrade after connection reset?
In the middle of a "sudo apt-get dist-upgrade" on my Raspberry Pi, while waiting for user input, my ssh connection got reset. I was not running in a screen. The last few lines looked like this:
...
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 ...
11
votes
1
answer
2k
views
How to make use of Debian Installer's tabs which appeared in Stretch?
Debian Installer network install console (over ssh) in Stretch differs from that of Jessie and earlier. It has additional black "menu" line above the screen, which shows four "tabs" and a clock. These ...
10
votes
5
answers
225k
views
SSH :connect to host localhost port 22: Connection refused
In debian kali I tried to connect ssh and getting the following error :
SSH: connect to host localhost port 22: Connection refused
Background :
I was trying to connect ssh in debian, I am using ...
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 ...
9
votes
1
answer
42k
views
how to resume a screen session?
When I log to my SSH, I have 2 screen sessions:
screen -list
There are screens on:
4278.chat (07/16/15 14:26:47) (Attached)
15127.notifier (07/16/15 13:27:57) (...
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 ...
9
votes
1
answer
12k
views
Add user to SSH group safe?
I want to control who can log in via SSH on my server. Is it safe to add the group 'ssh' to the users who are allowed to login in?
I see some distros use system groups in the user's ID and others ...