New answers tagged

0

When you add multiple public keys to .ssh/authorized_keys file, any one having any private key for remote-user can login with remote-user. Best and secure way to allow only particular user is to have separate account for individual user and its individual public key should be in .ssh/authorized_keys file. Here Common account Remote-User should not be used. ...


0

This worked for me, follow 2 simple steps: Change root password Make changes in etc/ssh/sshd_config file If 1st step works, no need to do 2nd step. 1st Step explanation: In your terminal type, sudo passwd root, after changing the password try ssh root@IP if it works, great. If it does not. Follow 2nd step. 2nd Step explanation: In your terminal type, sudo ...


1

As of the more recent versions of openssh server, there is no way to configure an inactivity/idle timeout via /etc/ssh/sshd_config. While one can find a great many references saying to set ClientAliveCountMax 0 in conjunction with ClientAliveInterval N to create an inactivity/idle timeout, evidently that was not an intended ability and has now been ...


0

You can use the nohup command: nohup python test.py & This will continue to run the command even after you close your ssh session. nohup catches the SIGHUP signal when the controlling terminal process dies to ensure the command continues to run. Simply using python test.py & might also work if your shell ignores SIGHUP. In that case, your python ...


0

Are you sure your listed hostname is correct? I would assume it's github.com. GitHub documentation does not list ssh.github.com. Also, according to this answer, using IdentitiesOnly yes is recommended, though this is most likely not the issue here.


0

WSL does not automatically start sshd Try removing the ssh server with: sudo apt remove openssh-server And then install it again with: sudo apt install openssh-server Then check the server status to see if it is running. If not, try: sudo service ssh start to start the server. See more here Hope this helps


0

Problem due to file permissions ~/.ssh/config $ ls -alh ~/.ssh/ total 24K -rw-rw---- 1 ilya ilya 1.7K Aug 5 22:19 config $ chmod g-rw ~/.ssh/config torsocks ssh blabla.com 1596659405 ERROR torsocks[38123]: General SOCKS server failure (in socks5_recv_connect_reply() at socks5.c:527) ssh: connect to host blabla.com port 22: Connection refused


0

Let's say you want to run gnome-disks. You need 2 ssh sessions. One is used to run the software ( in this case gnome-disks). In the second one you do whatever you want to do. In the first session execute these commands: export DISPLAY=:0 gnome-disks


1

You can install a VNC-Server to look at the screen. Install x11vnc Run x11vnc Connect to the PC using a VNC-Viewer


0

I can think of three ways. Enable X11 through SSH As gmt42 said in his answer, you could enable SSH to tunnel X11 messages then the window(s) will open on your computer from which you initiated the SSH. In most cases, you do that using the -X command line option. Now if you do man ssh and search about X11, you'll see all sorts of options and even some ...


0

found the solution to this issue. CIFS (as using the SMB standard) is not able to forward local root permissions. NFS is, as long as you set no_root_squash. In my case I am using NetApp and I can activate SuperUser forwarding what solved my issue.


0

If you wanna set a custom message, create a file in the update-motd.d folder & chmod it as shown below sudo vi /etc/update-motd.d/01-custom Add your custom message along with the ipconfig command to this #!/bin/sh ifconfig |grep "inet addr" Or in modern Linux systems ipconfig is deprecated so use the below: #!/bin/sh ip a | grep "inet&...


0

If you installed the ssh server than you may be accepting incoming SSH connections. However if you just installed the ssh client, than you are good to go. You need to be running a ssh server to allow incoming connections. You can check if you have ssh-server running on your Ubuntu with sudo service --status-all | grep ssh if there is a [ + ] ssh than you're ...


0

Accord to the article. you need two machines to complete VPN server.


0

Adding auto usb0 in /etc/network/interfaces did the job for me.


0

Resetting the owner names and owning group names can take many hours. Basically you need another partition (or Live USB with persistence and all the Apps installed) and then clone the permissions from the working installation to the broken one: Set myself as owner of /etc with chown command now getting all kinds of errors Although I didn't intentionally do ...


0

It happened to me when i wanted to disable SSH key login. First i set this: sudo nano /etc/ssh/sshd_config // set this in the file: PasswordAuthentication yes (from no) // save and call: sudo service ssh restart Then the error happened then I also added in the file above: PubkeyAuthentication no // then call sudo service ssh restart It seemed it fixed ...


1

Thank you Doug Smythies, you provided the solution and thanks to you, too, pLumo, you posted the key error message. I was in fact hitting MaxStartups 10:30:60 where 10 is "Number of unauthenticated connections before we start dropping" (Quote: https://stackoverflow.com/questions/4812134/in-sshd-configuration-what-does-maxstartups-103060-mean) The ...


2

Is this issue related to that both machines have the same public ip? No, this is because your public IP points to your Fritzbox and not the machines. So you need to tell the Fritzbox what to do with requests. That is why you use "Port Forwarding". Then, the Fritzbox forwards the traffic from that port to the local machine. You can also tell the ...


0

I have posted the same answer in another question. However, it answers exactly the question on this page. Here the full text and solution: Another wonderful solution (unfortunately not considered in the beginning) consists of creating an ethernet connection so that the internet access through the wifi is also shared with the embedded system. The solution is ...


0

I am assuming you are running ubuntu here(because I had the same problem). Try to ping 8.8.8.8 from within the VNC to check whether VPS is connected to the network. If not => Check /etc/netplan for a backup config file, you should find there the details to config netplan. After you apply the config, reboot and vps should be online. If not, create a ticket ...


0

Ok, so in the end I was able to solve this problem thanks to a piece of advice from someone I'm working with. Apparently I just needed to change the line: comp-lzo no in my ovpn file to: comp-lzo yes And that solved the problem! This solution did not come up anywhere I searched online so I wanted to be sure to share it here in case it would be useful for ...


0

The answer is something called reverse ssh tunelling. Explanations on how it works and how to do it can be found on another question on stack exchange: https://unix.stackexchange.com/questions/46235/how-does-reverse-ssh-tunneling-work


3

Another approach is to specify ENABLED=0 in the config file /etc/default/motd-news. This may be preferred, based on a review of /etc/update-motd.d/50-motd-news: $ grep -A5 Source /etc/update-motd.d/50-motd-news # Source the local configuration [ -r /etc/default/motd-news ] && . /etc/default/motd-news # Exit immediately, unless we're enabled # This ...


2

Sometimes you may need to restart in order for any change to take effect. Also, I do not recommend connecting to machines using their hostname as it can be unreliable and a bit weird sometimes. I recommend just using the IP address instead.


1

Thanks to @rtaft and @mook765 for helping. I'm not very experiencing in grub internals, and actually I don't have much desire to read tons of documentation. In my case I have to HDD: /dev/sda - Debian /dev/sdb - Ubuntu. Both of these have their own copy of /boot/grub/grub.cfg. Let's say I login to Debian now, it means all commands like sudo grub-update ...


1

It seems its not possible to have one Domain config in SSSD and be able to seperate Group permissions, or at least I did not find it. So my solution is as follow sssd.conf [sssd] domains = domain1.lan, domain2.lan config_file_version = 2 services = nss, pam default_domain_suffix = domain.lan [domain/domain1.lan] default_shell = /bin/bash ...


0

You can use a tool called Ngrok. It's very easy to set up and configure. ngrok is able to bypass NAT Mapping and firewall restrictions by creating a long-lived TCP tunnel from a randomly generated subdomain on ngrok.com (e.g. 3gf892ks.ngrok.com) to the local machine. After specifying the port that your web server listens on, the ngrok client program ...


2

You can get and use Kubuntu's start menu this way: Start a terminal window and run ssh -X <user@IP-adress-of-your-Kubuntu> and (in the ssh session) run plasmawindowed org.kde.plasma.kicker and select your application with the GUI name (instead of guessing the command line name). You can make an alias for the long command line to make things more ...


0

found the problem, networking issue: https://ubuntu-mate.community/t/cannot-login-via-ssh-before-performing-a-local-login/12103/3


0

poweroff --reboot halt --reboot shutdown -r systemctl reboot Do all commands do the same thing? Does it only shutdown like that when you ssh'd in? I am no ACPI expert but I have had problems with 'only' Dells and the BIOS/UEFI that they've used(coupled with my unconventional installs) causing PCs to not shutdown or reboot in the past. Did this just start? Do ...


0

You might transfer your data between machines with simple email hosting. But don't forget to archive and create safe password. Or encode it in any other safe way if it is critical data.


0

The command should be: sudo shutdown –r the -r switch at the end indicates that you want the machine to restart. sudo will run the command as administrator and so will require the administrator password.


Top 50 recent answers are included