All Questions
217
questions
0
votes
1
answer
40
views
Is it possible to set up a remote login session where a specific user only has access to certain folders, and can only run one executable?
I have a server where I'd like to grant a user the ability to log in remotely, but restrict the session in two specific ways:
They can only access a certain set of folders on the computer, and for ...
0
votes
0
answers
43
views
Is there a way to reserve bandwidth for ssh on linux / debian?
I ssh into my dev machine, and then start a download, for instance "ollama pull llama3"
This uses all of the available bandwidth for the network interface, which makes ssh unresponsive until ...
0
votes
0
answers
35
views
Set terminal color without having bash history look wrong? [duplicate]
A site suggested I wrote the below to set the color of my terminal in `~/.bashrc
export PS1=`printf "\033[32m$ \033[39m"`
If I log in through ssh, press up, home, up text will be garbled.
...
0
votes
0
answers
63
views
SSH forwarding audio in Debian 12 KDE
Systems:
X86_64
Debian 12 bookworm KDE
AND
Debian 11 bullseye KDE
Raspberry Pi 4B 8GB
Raspberry Pi OS (64-bit) (official port of Debian Bookworm)
PROBLEM:
I have an X86_64 receiving audio from my ...
0
votes
0
answers
13
views
Forcefully ending ssh connection deletes content of /dev/shm [duplicate]
I was just curious if the following behaviour is intentional and if somebody could explain this behaviour to me. Enlighten me on this topic.
I used /dev/shm as a place for ram transcoding until the ...
0
votes
0
answers
92
views
Debian bookworm: Long delay when starting application via ssh -X
I have a new vanilla Debian bookworm installation on a laptop. Everything works as intended but when I connect to it with ssh -X and start any application (e.g. gedit) there is a delay of ~ 25 seconds ...
0
votes
1
answer
287
views
ssh login delayed on Debian
When logging in to an up to date Debian 12 (bookworm) server via ssh (to IP address) the login is delayed by ~10 seconds after entering the password (and also when doing ssh login via key).
Here is ...
1
vote
1
answer
232
views
Vagrant cant provision vm with debian/bookworm64 ssh authentification failed
I am trying to start up a VM with this box "debian/bookworm64" but it timeouts during the ssh authentification. I've used the same Vagrantfile with ubuntu/focal64 and there it just works. I ...
2
votes
2
answers
1k
views
SSH from PowerShell/CMD to Linux w/out dark blue text
So currently my shell looks something like this when I SSH into my Debian server:
I mostly use PowerShell as the client and customize the background & text colors to match system theme. Command ...
0
votes
0
answers
432
views
"Connection reset" after "debug1: SSH2_MSG_KEXINIT sent"
So, here is the view from the client side - I do not yet have access to the server-side logs... What might be happening ? What should I check ? What should I do to get better information ?
jm@...
0
votes
0
answers
1k
views
"ssh: connect to host gitlab.com port 22: Network is unreachable" error - can't connect to any SSH server
I have an issue I can't connect with SSH to Gitlab or any AWS instance.
It was fine before, but I remember that I have installed RabbitMQ last time (not sure if this is the reason). I installed it ...
0
votes
0
answers
490
views
SFTP disconnects if directory owner is not root
I'm on Debian 11, using openssh-server 8.4, trying to build an sftp server for HTML uploads.
The upload destination directory is "/var/www/html" and the username is "sftp-user".
...
0
votes
1
answer
116
views
SSH breaks up-line-or-beginning-search when the server has older version of zsh
I have
# auto-complete
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[A"...
0
votes
1
answer
598
views
DropbearSSH - ssh client says: Authentication succeeded (public key) but connection closed by remote host
Question
How to setup password-less (key-based) ssh from Ubuntu16.04 client to Dropbear SSH server?
My private key is not passphrase-protected.
I am unable to ssh from Ubuntu16.04 to DropbearSSH with ...
0
votes
1
answer
339
views
Static IP address over different wifi access points
I'm setting up a headless PC in order for it to be accessible using ssh (over wifi) only, it has LMDE5 (a Debian based flavor of Linux Mint).
On one hand, setting a static IP address will give me the ...
0
votes
0
answers
179
views
Debian SSH cant sudo
i have a Debian Server which only can be accessed remotely via SSH.
And i have a Couplet of Problems.
When i try to login as root it does not accept my password.
When i am logged in as normal user i ...
0
votes
0
answers
322
views
Turning off PermitRootLogin in sshd prevents any user to connect
I have a Debian bullseye virtual machine in OVH cloud. Allowing ssh login as root is non-secure, so I decided to turn it off in /etc/ssh/sshd_config by commenting out the line PermitRootLogin yes. ...
0
votes
0
answers
430
views
ssh from windows 10 to debian with no password
I tried to SSH without a password from a Windows 10 client to a Linux [Debian] server without using a password, following every step described here; however, I am still asked for the password every ...
0
votes
0
answers
215
views
Login in as root in Debian on an AWS instance
As the title says, I want to Login in as root in Debian on an AWS instance. I have tried various methods as described in this, this and others.
In other words I have set:
PermitRootLogin yes
...
1
vote
1
answer
39
views
Apparent SSH anomaly
I have four machines on which I'm installing Debian 11.2. On three of them, there was nothing I wanted to save, so I just did a clean install. On the fourth (10.0.0.96) I needed to save some stuff so ...
0
votes
1
answer
946
views
Operation time out when attempting to connect to server with SSH after scp started hanging
I was transferring a file between two remote machines when the scp command stopped at 92%. Now, I'm unable to SSH into my server from my local machine. I do have access via my server host's VNC ...
0
votes
0
answers
2k
views
Permission Denied When trying to SSH with Public IP
SSH: Permission Denied, when using Public IP address
I am trying to remotely connect from one PC to another host's Virtual Machine(VM).
I can easily SSH from Host to Virtual Machine but when trying to ...
1
vote
1
answer
1k
views
OpenSSH Problems combining PAM and Password
I'm playing around with MFA out of personal interest and ran in to an issue I haven't been able to figure out.
I recently set up PAM (using Google Authenticator) and would like to combine this with ...
0
votes
0
answers
29
views
debian several ssh in shellscript file not works
In Ubuntu, I have a shell script file. In my script, the first ssh command to the Debian server works but the second ssh has error.
for example, if I have
ssh -t "$userName"@"$...
0
votes
0
answers
122
views
Debian server on a flash drive
I want to make an flash drive that when you put it into an computer it will boot the debian up and you can ssh into it. I don't want to boot into it, because I sometimes don't have a lot of time or i ...
1
vote
0
answers
214
views
How to configure the ssh plug in for Visual Studio Code in case the remote server uses port knocking?
So there is a server which has port knocking (e.g by using linux subsystem for windows) I can easily ssh to by
$ knock -v "ip of the server" Xport:udp Yport:udp Zport:udp
$ ssh -i ~/.ssh/...
5
votes
3
answers
6k
views
`systemctl --user` results in "Failed to connect to bus" in google compute instance
I'm connected to a google compute instance via ssh with Debian 9. When I try any systemctl --user ... command (systemctl --user status for instance) I get an error: "Failed to connect to bus: No ...
0
votes
1
answer
1k
views
Where does Putty get the server host public key?
I'm logging into a Debian box and I get the security alert showing me the host public key. When I compare the full public key reported by PuTTY to the one in ~/.ssh/authorized_keys I find that they ...
-1
votes
1
answer
2k
views
Why is OpenSSH server installed and enabled by default?
I am installing a new Debian based distro. I'm following a guide and it appears that OpenSSH server is enabled by default. That is, openssh-server is installed by default. To my understanding, this is ...
2
votes
2
answers
18k
views
X11 forwarding: Unable to init server: Could not connect: Connection refused. What is needed for an X11 connection?
I want to control a no GUI Debian server by an X11 connection via ssh from Ubuntu desktop. From everything I read and watched it should work like a charm on Linux distros but it doesn't.
# The ...