Skip to main content

All Questions

Tagged with
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. ...
Dmitry K's user avatar
1 vote
0 answers
2k views

Problems trying to keep SSH session alive "forever"

I know there are many questions/articles about this topic. But... I tried a bunch of them and nothing seems to make my SSH connection alive "forever". I'm currently working from MacOs BigSur ...
DGF's user avatar
  • 111
1 vote
1 answer
30k views

ssh permission denied (publickey,keyboard-interactive)

Why I insist on asking a question I've done a quick search on this problem and done a few solutions that have been said. None worked. What I did Termux as host. Installed apt install openssh, ...
eZeth's user avatar
  • 21
5 votes
1 answer
3k views

SSH not passing LANG environment variable

I'm running a Debian server (uname -v output #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23)). When I log in from any of several clients (macOS 10.13 laptop with default ssh, the "Prompt" app on iOS, among ...
Scott Colby's user avatar
0 votes
2 answers
17k views

bad ownership or modes for chroot directory "/var/www"

I am getting following error in auth.log when trying to connect to site using SFTP. fatal: bad ownership or modes for chroot directory "/var/www" ls -ld of this directory shows this: drwxrwxr-x ...
Frank Martin's user avatar
0 votes
2 answers
377 views

As an unprivileged user, how can I configure sshd to allow only specified commands to be executed when it's autheticated with a password?

I usually log in to a SSH server (where I'm an unprivileged user) by using my public keys. I also use authentication by a password when I use the server as a git-annex repository. What I want to do ...
Pteromys's user avatar
  • 103
1 vote
2 answers
474 views

SSH vs Apache port 443

I want move SSH to port 443, but is used by https. In /etc/apache2/ports.conf I commented the lines for listen by this port. In the default site available also commented the lines. For finish, I ...
HEDMON's user avatar
  • 141
2 votes
1 answer
1k views

Can't disable SSHD banner

So, I have a WD MyBookLive NAS, which runs an ugly PPC build of Debian Squeeze. It has SSH access enabled, and when I log in, I get a long banner message (closer to an epic saga in length) about "Don'...
Chris's user avatar
  • 631
1 vote
0 answers
191 views

Trying to setup SSH RSA auth on a debian machine.

I am trying to set up ssh on a debian machine. I have a pair of keys generated with putty, I load my private key with Pageant, and the public one I uploaded on the server, and paste it in /home/user/....
Alexandru's user avatar
0 votes
1 answer
2k views

Does the rc.local script start automatically?

I'm having a problem on my remote server (which is in another city) and I can't access it with SSH. I can see that port 80 and 443 is open, but port 22 isn't. I could only assume that sshd didn't ...
The Quantum Physicist's user avatar
0 votes
0 answers
130 views

Connection refused to my remote server

I rented this server, and I had connection with it with no problems through SSH. A friend of mine suggested trying to restart the server, because it'll definitely happen in the future, and I should ...
The Quantum Physicist's user avatar