Questions tagged [ssh]

Secure Shell (SSH) is a protocol primarily for encrypted shell connections. This tag is also used for questions about sshd and openssh, the two standard applications for using SSH.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

UFW activated, but still failed connections in auth.log

I activated the ufw on my ubuntu 18 server. After resetting to defaults, deny all incomming, I opened port 22, 80 and 443 and enabled the logging. In the ufw log, I can see a lot of blocked request. ...
0
votes
0answers
12 views

Ngrok connections line meaning

I have just set up ngrok, and read through the parts of the documentation pertaining to ssh, which is what I am using it for. On the "host" or "server" device (not sure of the correct name), it shows ...
0
votes
0answers
8 views

Remote SSH not working in Visual Studio Code

I have used the Remote SSH extension by Microsoft in Visual Studio Code to connect from my Windows 10 machine to my Raspberry Pi 4. It worked fine until one day. After three times entering the correct ...
0
votes
0answers
6 views

rsync multiple remote directories with one single connect

I know how to rsync a remote directory through ssh. By the way, we have to rsync a lot of remote directories and can't run every single time a separate rsync command. That's because every rsync ...
0
votes
1answer
16 views

apt-get upgrade not finding packages

When I ssh into my server I get this banner: Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.15.0-45-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape....
0
votes
1answer
31 views

GCP - “Transferring SSH keys to the VM” - constant loop

I had an instance created from the Deep Learning VM image which stopped allowing me to SSH into it through the Cloud console and went on a constant loop of trying to transfer SSH keys to the VM. ...
0
votes
0answers
14 views

Git pull in Powershell and how to get the output of a command

I am pretty new to using PowerShell for automation. I want to ssh into a machine, and run a git pull in it. This works when I do it through the powershell manually, but not when I automate it through ...
0
votes
0answers
12 views

How to enable Password Based Authentication wiith SSH in Centos QCOW2 Image?

I need to deploy a CentOs Cloud Image on private server(kind of bare metal server). So i download CentOS cloud image and customize it with virt-customize having SSH enabled with Password ...
0
votes
0answers
30 views

Cannot connect to SSH for AWS EC2

I can't connect to my AWS EC2 Ubuntu server using SSH. Every time I want to connect using SSH, it gives: $ ssh -i key.pem ubuntu@[IP Address] Connection closed by [IP Address] port 22 With -...
0
votes
1answer
24 views

How to have a systemd unit restart upon OpenVPN client connection

For general purposes it would be nice to know how to detect network changes and restart services - but my specific use case is wanting to restart sshd after my OpenVPN client connects. Without ...
1
vote
1answer
49 views

Ssh config file on intermediate host is ignored for ssh proxy with proxycommand

I'm connecting to host-b through host a Host host-a HostName 10.8.0.1 Port 333 User host_admin IdentityFile ~/.ssh/id-ecdsa-admin Host host-b HostName 1.1.1.1 Port 567 ...
0
votes
1answer
21 views

Monitoring users logged in with SSH-CA (certificates)

I was hoping to get some help with an approach that could be used... I am building out a solution that will use SSH-CA (that is, SSH where authentication is done via certificates). Flow is simple: ...
0
votes
2answers
62 views

Open Source Remote Access using VNC and Reverse SSH

I am trying to get a remote access approach (open source) working involving openssh and tightvnc that deals with NAT, that allows someone to remote to my server and then allows me to vnc back to their ...
0
votes
0answers
43 views

What does this OpenVPN client level 11 verb output tell us about the SSH connection hangs/stalls we are experiencing?

Overview After setting up OpenVPN, we are able to connect over SSH (e.g. to 10.8.0.9), but the SSH connection hangs/stalls, usually after about 2-minutes. The SSH connection is from Ubuntu 18 on WSL ...
0
votes
1answer
11 views

specifying server port (not postgres port) for pg_dump / psql

I have a server named as servername.mydomain.com. I can do ssh to this server using a port number X using: ssh myusername@servername.mydomain.com -p X From this server I can run: psql -h localhost ...
5
votes
2answers
129 views

Windows FTP over SSH

We have quite a lot of scripts that are used to upload and download files with a vendor on the Internet using the Windows supplied ftp.exe. This is proxied via SideWinder and is FTP out to the vendor,...
0
votes
0answers
32 views

How to configure PAM to authenticate SSH logins with (password & OTP) or (public key & OTP)

My goal is to develop an ansible playbook to deploy multifactor ssh logins of the type (public key and OTP) or (password and OTP) on Ubuntu Server 18.04 hosts. I followed the guide here and it ...
0
votes
1answer
19 views

Automating SSH authentication to GitHub - what should ~/.ssh/config file look like?

I'm trying to automate logins to GitHub using a private key, so that I can do "git pull/add/commit/push" from a BASH script. If I put this in ~/.ssh/config, it works: Hostname github.com User git ...
0
votes
0answers
27 views

ssh server doesn't respond on default port (22), but works on custom port

I'm running a Ubuntu 16 based distro on a device, and get no response to ssh requests on port 22 (I am sniffing with tcpdump on the device, and can see the ssh request coming in, but nothing is sent ...
0
votes
1answer
19 views

fail2ban jail.local/jail.conf does not have [ssh] section

I am new to fail2ban and am trying to harden a ssh server which is set up on a raspberry pi running raspbian buster. I understood that changes should be made to jail.local and I did that by copying ...
1
vote
1answer
24 views

Using 2 key pairs simultaneously for ssh authentication

I have a ssh server running on a raspberry pi. This ssh server can only be accessed by 1 user on my ubuntu laptop only. I have created 2 pairs of ssh keys using: ssh-keygen -t ed25519 -o -a 100 ssh-...
0
votes
0answers
13 views

Can I make putty more resistant to my laptop switching between access points? [closed]

I used to live in a house with one wifi access point and my putty connections would generally stay up for days at a time. Now we have a bigger house and 4 APs, and I find that when the laptop roams ...
0
votes
0answers
72 views

Is it possible to forward ports through SSH in this scenario?

Description I have a PostgreSQL server across the internet in a laboratory network. Currently I'm using ssh to connect to it. However I would like to have an Adminer docker on my local network ...
0
votes
1answer
16 views

SSH_AUTH_SOCK held by keyring

I'm running RHEL with xfce 4.14 on one of the work VMs $ cat /etc/redhat-release Red Hat Enterprise Linux release 8.1 (Ootpa) $ uname -a Linux foo.local 4.18.0-147.el8.sf02480468.12.x86_64 #1 SMP ...
2
votes
0answers
28 views

Can only Putty into EC2 spot machine one time [closed]

I'm creating AWS EC2 spot machine instances in the AWS console based on ami-062f7200baf2fa504 (Linux 64-bit, amzn2-ami-hvm-2.0.20191217.0-x86_64_gp2). I can SSH into the instances once without ...
0
votes
0answers
38 views

alias: Host name lookup failure on adding address to interface

I want to port forward multiple MySql databases via ssh like this: ssh \ -L 3307:database-1:3306 \ -L 3308:database-2:3306 \ bastion-server I also want to acces databases locally via database-...
0
votes
2answers
54 views

How can one allow or deny an ssh login for a specific user(s) or group(s) on an sshd server?

How can one allow or deny an ssh login for a specific user(s) or group(s) on an sshd server? (I realize SE has similar questions, but not I could find any that address this specific point. All others ...
0
votes
1answer
27 views

Allowing an active directory group to ssh into server

I'm trying to get my AD group SSH_Users to be able to SSH into our server. I added a line to the config file in /etc/sshd: AllowGroups ssh_Users and tried ssh_Users?domain.com. This does not work. I ...
0
votes
0answers
15 views

non interactive shell locale

I'm running commands on a remote host via ssh where i'd like to have locale vars set. I do not care about the full profile scripts from a true interactive shell, just the locale vars. The minimum ...
1
vote
1answer
28 views

Why Can't I SSH into my new EC2 instance

I've set up an EC2 instance, and don't seem to be able to ssh into it. Searching around and looking for general solutions to this, I've set it up with the following characteristics I have used a ...
0
votes
1answer
52 views

Permission denied errors after logging back into a ssh-ed tmux/screen session

I'm running some very long jobs on a machine that I'm SSH'd in. However, sometimes after a few hours in the session, I no longer have permissions to run simple commands that I previously could. That ...
0
votes
0answers
9 views

Can't ssh with explicit private key and IdentitiesOnly=yes

I have generated pub/priv key (ed25519) with no passphrase. Added pubkey to authorized_keys on host B. Here is .ssh directory content: ~/.ssh$ ls -la total 40 drwx------ 2 alex alex 4096 Mar 28 17:...
0
votes
1answer
36 views

Can the sysadmin monitor my network traffic while openVPN client is active? [closed]

I have an openVPN client on my personal Ubuntu laptop in order to connect to two specific company web servers thru ssh. Can the SysAdmin who manages the VPN server track my non related internet ...
1
vote
1answer
61 views

Looping transfer SSH keys while opening SSH access of my VM

Yesterday, I was able to connect to my VM without any problem. Today, when I wanted to connect, it just loops over "Transferring SSH keys to VM". When I go in the console, it loops the same thing. [ ...
1
vote
0answers
14 views

Connections reach server when running sshd.exe, but not when running the *OpenSSH Server* Service

I'm trying to set up an OpenSSH server on an install of Windows Server Enterprise 2007 (SP2). See title. I've included the below lines in my sshd_config so that the OpenSSH Server Service (which I'll ...
0
votes
1answer
44 views

How to access a virtual server on a host from remote host

Support I have a host A with ip 9.21.118.35, in this host there exists a virtual server with ip 192.168.130.11 and virtual server expose port 31666. Then I want to connect to virtual server (192.168....
0
votes
1answer
100 views

Connect to Elastic Beanstalk's EC2 Instance using SSH?

Background: I'm running Metabase on Elastic Beanstalk, and I followed Metabase Documentation. Now, I want to implement SSL, and I will follow this guide to install Let's Encrypt. So to install Let's ...
2
votes
1answer
34 views

Disable ssh-copy-id / prevent user from adding keys / add public key with web ui

I'm looking for an option to hinder users to add their public key with ssh-copy-id. So that an admin has to upload it (like github and other services) with a webui. For example: I tried to add my ...
1
vote
1answer
30 views

firewalld rules to allow static IP SSH access with backdoor?

I'm new to firewalld and centos 7. I read other questions and I've learned about "zones" and rules. Right now, it's in the default state: # firewall-cmd --get-default-zone public # firewall-cmd --...
0
votes
0answers
19 views

SSH freezes with long output, but seems not MTU related

I am having a problem with SSH/SCP from a client to a Linux server over the Internet. When issuing a command with long output, like dmesg, the session freezes and it's closed after few seconds. Also, ...
0
votes
1answer
38 views

Remote: Server has disabled port forwarding affecting one user

I'm working on a linux server that's got several accounts for specific port forwarding operations, and an account that was working previously has stopped working. Using some verbosity I found the ...
0
votes
1answer
20 views

How to tunnel private adress based on etc/host record?

I have machine A (MacOS), and Server B in private network (ubuntu). In etc/host on B I have something like: 192.168.63.123 abc.abc.com 192.168.63.123 abc2.abc2.com 192.168.63.123 abc3.abc3.com I ...
0
votes
0answers
20 views

sshuttle session freezes within a few mins

sshuttle session freezes with error uwrite: got EPIPE, warning: closed channel 1 got cmd=TCP_DATA len=2048 Have hit a wall now so any help much appreciated! Only happens on my machine. My ...
0
votes
1answer
75 views

I see an additional SSHD connection established from an IP that I don't recognise. Should I be worried? (output included)

Here's the output (I've changed my IP to 23.23.23.23) [root@web01 centos]# lsof -i tcp:22 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 3705 root 3u IPv4 ...
0
votes
0answers
50 views

Compromised Ubiquity ERLite 3?

I'm not a network administrator just trying to help a friend who's been having issues lately with his PPTP VPN. At first glance I noticed a very high CPU usage as well as constantly >50Mbps of RX/TX ...
0
votes
1answer
102 views

-bash: ansible-playbook: command not found

Fresh Fedora Server Netinstall. Updated. Installed only Git and Ansible latest versions from standard repo. Want to execute Ansible against it's own host (localhost) to set up its host itself (not ...
1
vote
1answer
44 views

SSH: Why do I have to re-verify the fingerprint when connecting to the same server from another domain?

In the following I'm talking about the OpenSSH Client installed by default on debian. I'd like to have multiple (sub)domains pointing to my server(s) (so multiple per server), i.e. database.example....
0
votes
1answer
36 views

Why connecting to a high SSH port number takes longer than a lower port number? [closed]

I have a Linux server to SSH, and the old port number was 1818. Recently there's been a network issue in my country that I had issue reaching my server port 1818. So I decided to change it to another ...
1
vote
1answer
79 views

Postfix over proxy like SOCKET or SSH tunnel

I'm trying to send mail over proxy (SSH tunnel or SOCKET proxy) by postfix. I tried to do something like that schema: I'm using MacOs with no firewall. The receiving client over browser has been ...
0
votes
0answers
28 views

WinSCP client and OpenSSH Server - Server offered these authentication methods: publickey,keyboard-interactive

We can connect with user/password, but we have a client that wants to connect with ssh-rsa certificate. WinSCP log: . 2020-03-19 17:00:01.376 -------------------------------------------------------...

1
2 3 4 5
154