Questions tagged as ['ssh']
I tried to connect to my sever through the ssh using ubuntu but it does not work.
sudo apt-get install openssh-server openssh-client [sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done openssh-client is already the newest version (1:8.2p1-4ubuntu0.3). openssh-client set to manually installed. openssh-server is already the newest versio ...
When I run the
chmod g+s /var/www/, it will suddenly logout my user..
but I was able to run the command
chmod g+r /var/www/ without happened force log out..
I had tried different directory/user/root.. it seem to have same behaviour..
How can I debug this problem ??
I had tried to log my auth.log..
tail -n300 /var/log/auth.log | grep ssh.
it's seem like everything is normal..
I am try using
ssh -vvv exa ...
Using the SSH opened port, it was possible to verify the folders and the files present, under the directory /usr/share/SecretFolder They are exposed without authentication. My question it's possible to forbid interaction with them. or to hide this folder. It's possible to configure that in the Makefile of OpenSSH. Anyway, I need a solution.
Based on Ubuntu 18.04,
I want to allow users to access only from 9 a.m. to 5 p.m.(working time) on the SSH server. (used
I've looked up all the materials I think will help you from user management to PAM settings on Google, but I don't think there's any information to restrict access by SSH time zone.
(But, I have not to use firewall-related services like
If you can help ...
I am working remotely, and I am using the OpenFortivpn to connect to the companies network. I am able to ssh into the VM, but when I ran the update command it did not run. Ping did not work too. I have tried setting up the proxies, and it still did not work.
Wondering how you can do this? Upgraded from version 16(.?) to 20.04.3 LTS, and I got this message, I use it for a fair bit of port-forwarding and streaming and etc, using it as a media server, and I'm just wondering how to do this?
I didn't initially set this up, but yeah I am curious as it does say
Some third-party entries in your sources.list were disabled. You can re-enable them after the upg ...
I got ubuntu server up and running perfectly, everything is working exactly as intended. I was doing a file transfer to move all the things I wanted to back up, the exchange finished and a few hours later I noticed I could no longer connect to my Samba share folder from my computer anymore
I have literally changed nothing and I'm not sure what to do steps I've taken to solve the issue that haven' ...
Hi I'm running my VM on virtual box and trying to ssh to it from my MAC.
- Port Forwarding entry,
- Host IP:
- Host Port:
- Guest Port:
- Attached to: Host-only Adapter
- Name: vboxnet0
ssh [server]@127.0.0.1 -p 2222 -vv
I get the following error:
kex_exchange_identification: read: Connection reset by peer
We have a dedicated offsite server in a server center and yesterday suddenly we lost connection to the production server. No one was working on the server at the time. I only have a RemoteConsole access to the server.
When i ping something it states
ping 220.127.116.11 connect: Network is unreachable
The Ubuntu 18.04 server looks like it has lost connection to the public network. Customer service at the server ...
I've generated two keys on PuTTY: public and private. Using this software on windows I can connect to the server as usual.
Then I tried to copy those files in my ubuntu machine (21.04), and logged in loading the private key (open putty, write the
user@hostname and then load the private key at SSH>Auth), but there is unable to connect being rejected by the server as this error says:
Unable to loa ...
I have a problem cloning a repo when I use http:
git clone https://github.com/burbanox/responsive-design.git
throw me an error :
fatal: unable to access 'https://github.com/burbanox/responsive-design.git/': gnutls_handshake() failed: Error in the pull function.
so when I use ssh:
git clone firstname.lastname@example.org:burbanox/responsive-design.git
stays loading forever :
Cloning into 'responsive-design'... remote: ...
Hello Ubuntu comunity!
Greetings from Czech republic, Europe. Sorry for my very simple english, as I'm not good in it and I even do mix it with german and czech. Also sorry for local language from Terminal outputs. If some one please could help me out, I would be really very glad.
To the issue: I try to make a Lubuntu 18.04 installation USB stick for i686 notebook. But I do not get a OK for ISO file ...
I've seen a few topics on this before on AskUbuntu and bits and pieces from other forums but no answer actually solved my query. I'm trying to kill a service on my Ubuntu machine via SSH (Terminal), here's the things that I've tried:
- used systemctl kill [servicename]
- used htop to kill the processes
Is there a way to edit the service file (possibly) so it'll kill the service instead of trying to sh ...
Sometimes I'd like to ssh to a machine, mount my encrypted home directory and disconnect and keep the directory mounted.
What I managed already to do is
- ssh to my machine (without password only public keys are allowed for security reasons)
- create a tmux session
- mount the file system in the tmux session
- cd into the home directory
- execute some script that will run for a long time
- detach the tmux sess ...
Server A ( Hosted in private network, need VPN access )
Server B ( Public hosted )
Server C ( U can assume is my own macbook )
autossh to setup my reverse tunneling at server A
with this command
autossh -f -T -M 20002 -o "ServerAliveInterval 10" -o "ServerAliveCountMax 2" -N -R 19999:localhost:22 user@server_b
Then in my Server B
I able to run
ssh localhost -p 199999 to connect my server A. ...
If I'm physically at my desktop, I can start protonvpn with no issue using the command
However, when I'm connected remotely via an SSH connection and run the same command, I get this error:
Unable to setup reconnect. Please make sure that you have access to internet or that you've previously connected to another server.
I've not had any luck searching around on forums yet, so any help w ...
we are testing to use Ubuntu Core for our IoT sensor/control devices
I was trying to emulate a situation, where if a key is compromised, what is the best practice for the ssh key pair. In all the examples, the instruction is to create only one pair. In case of a compromise, one would want to immediately delete the compromised key first.
I used the following method to create 2 key sets - one as main ...
I installed recently vsftpd and added a user called ftpuser. I created the /etc/vsftpd.conf file from scratch with the following info:
listen=YES listen_ipv6=YES anonymous_enable=NO local_enable=YES write_enable=YES local_umask=022 dirmessage_enable=YES use_localtime=YES xferlog_enable=YES connect_from_port_20=YES chroot_local_user=YES local_root=/mnt/md0 secure_chroot_dir=/mnt/md0 pam_service_name ...
I want to create a netconf server and client, by using yangcli. I use Ubuntu 20.04 LTS as a Windows Subsystem for Linux (WSL). I want to open two terminals on the same computer, one as server, the other as the client. I can create the netconf server, but when I want to connect to it by using yangcli it wants user, server and password as parameters. It wants password from me, but I didn't configure any p ...
I've got a remote machine that was set up with full-drive encryption. I need to remotely reboot the thing. Is there some way to remotely alter the machine such that the passcode for decryption gets entered before boot, or some way to remotely remove the encryption? I know all of these things go against the security model, but the thing needs rebooting and I don't have in-person access to it.
Ubuntu server 20.04.3 TLS
Trying to connect ssh, but there is error
no matching cipher found. Their offer: aes128-cbc,3des-cbc
Then i tried to connect by
ssh -c aes128-cbc email@example.com
And getting error with
Permission denied (password,publickey).
I'm pretty sure the password is correct, but I don't quite understand. Maybe this password should be encrypted somehow? Tell me, please, rum ...
I'm trying to generate an
ed25519-sk SSH key in Ubuntu 20.04.03 LTS. However, I get a
255 error code when I try. I'm using OpenSSH version:
OpenSSH_8.2p1 Ubuntu-4ubuntu0.3, OpenSSL 1.1.1f 31 Mar 2020. See below for the command I'm using and its output:
$ ssh-keygen -vvv -t ed25519-sk Generating public/private ed25519-sk key pair. You may need to ...
My mum has a wee laptop that needs, when it boots up, to reverse-SSH connect itself to a server (so I can help out when needed).
I'm struggling to get the connection to persist when it is started by
/reverse_SSH.sh I've got something like this:
#!/bin/bash while true; do ssh -R 19123:localhost:22 firstname.lastname@example.org sleep 1000 done
/etc/systemd/system/reverse_SSH.service I've ...
I am attempting to run a program 'a.o' on a remote server. To keep it running after closing SSH connection, I tried the following:
./a.o & disown -h %1
None of these options seem to work, and I cannot figure out why. Any ideas on how to fix this problem?
P.S. I am using a tunnel connection to connect to the server via a jump machine. Also, this is a program that inv ...
Good Morning, I need to force my SSH server to deny any connection which doesn't have my private SSH key... and not to ask a password
Include /etc/ssh/sshd_config.d/*.conf Port 22 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: #HostKey /etc/ssh/ssh_host_rsa_key #HostKey /etc/ssh/ssh_host_ecdsa_key #HostKey /etc/ssh/ssh_host_ed25519_key # Ciphers and keying #Rek ...
Using Ubuntu 20.04. I was wondering is there an open source package or extension that will make the bash terminal feel like an IDE with dynamic autocomplete suggestions while typing (without pressing tab and moving to the next prompt).
I have in mind something like this, as offered in any IDE.
For example, when I type
git, it should be pretty obvious it will be followed by
push e ...
I have read every related questions but could not find solution yet. I am still new to AWS but managed to set up an instance and deploy my website. My
uwf status was inactive so I hit
sudo ufw enable but I forgot to hit
sudo ufw allow ssh and now I can not use ssh when I press
ssh -i /Users/xyz/files/webshop.pem email@example.com in my mac terminal. Is there any rapid way to manage the issue withou ...
I'm new to ssh and working with remote machines. I have the problem that I press Ctrl-D to exit the session but I just exit Byobu in both client and host machine, but when I open Byobu again, I am still connected to the host.
My question is, how can I end my ssh session/connection with the host machine?
I use Ubuntu 20.04 on both machines.
I have a local GPU machine at home and want to be able to connect remotely to it with the laptop. What are the best practices and solutions for this?
Local GPU machine: Ubuntu 20
Laptop: Mac os
- I want to do programming (e.g. vs code) and run my code on the local server.
- It's fine to have terminal-based access (e.g. ssh). But I also need to synchronize my code between local machine and laptop ...