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
0 answers
6 views

Unable to add old HostKeyAlgorithms Ciphers KexAlgorithms to sshd_config no hostkey alg error

I have 2 linux boxes one is CentOS 6 one is Fedora 35 CentOS 6's openssh is too old and Fedora 35 sshd server reject the connection. I want to add back the old HostKeyAlgorithms Ciphers KexAlgorithms ...
user avatar
0 votes
0 answers
11 views

Can't connect ssh via wireless interface but t works using eth0

Suddenly I can't connect via ssh to a server using my wireless interface but I can do it using the eth0 interface with a cable connected directly to my router. From my wireless interface I got: $ ssh -...
user avatar
  • 101
0 votes
0 answers
16 views

Redirect ssh port to another port if 3 login failure (iptable/sshd/fail2ban)

I did some search on it and I didn't find anything useful. So I wanted to know if this even possible? Scenario: User is logging remotely using ssh root@ip. If 3 login attempts fails then redirect to ...
user avatar
  • 1
0 votes
1 answer
30 views

Is there any way to automate ssh login, without sshpass or expect?

The context here is that I have a series of embedded Linux systems at work. They do not have internet access. They are frequently re-imaged. I do not control the OS image and the owning team is not ...
user avatar
  • 101
0 votes
0 answers
17 views

Not able to ssh into google compute engine. Also on troubleshooting I am getting no network status

I tried to ssh into this machine but all its showing is that "You cannot connect to the VM instance because of an unexpected error. Wait a few moments and then try again." Tried retrying it ...
user avatar
0 votes
0 answers
15 views

Command logging for chroot ssh users

I have a ubuntu server that allows users access via ssh. When they log in they are contained to their chroot directory. I'm looking for a way to log commands used by the users. I've tried using snoopy ...
user avatar
0 votes
1 answer
13 views

`nohup: failed to run command 'node': No such file or directory` when running script through ssh

I have a remote server in which I serve a webserver using node (express) and nginx. I have a ./devops/deploy.sh script which starts the webserver and restarts nginx. Said script works correctly if I ...
user avatar
  • 103
0 votes
0 answers
9 views

SSH session is different from local

I m connecting to my WSL Ubuntu through SSH everyting works fine except mounts environnement When I am in Ubuntu locally, all windows drives are mounted in /mnt (local or network drives) but if I ...
user avatar
-1 votes
0 answers
16 views

Need to create temporary user with SSH login on Google Cloud Platform

I need to give someone temporary access to my servers on Google Cloud Platform. I want to set up my own SSH key to log in, then log in as root to create a temporary account for that person to use. ...
user avatar
  • 1
0 votes
2 answers
48 views

FTP over SSH (not SFTP?) when files are on third server not SSH server

I have a machine A. From it, I can SSH to machine B. Machine B can FTP to machine C. I want to download files from C, onto A. I do not have access from A to C directly. Port 20 and 21 ...
user avatar
-1 votes
0 answers
18 views

server does not show username after login

When login using ssh I write my password but it does not automatically continue the login, I have to do ctrl + c to get into the server, and when I am in, the username is not shown like before. user@...
user avatar
0 votes
0 answers
20 views

Securely handle ssh credentials from web application

I have a react web application and a nodejs application, both running on one of the shared servers. The servers use LDAP in ssh to identify and authenticate the users. Each user is assigned to one the ...
user avatar
0 votes
0 answers
10 views

How can I have ssh access to multiple machines using ngrok?

I've got a couple machines that are often either up or down. When they're up, I want ssh access to them using ngrok. I've set up ngrok on both machines, and their config files look like this: ...
user avatar
  • 101
0 votes
0 answers
12 views

Can’t connect with SSH through two different ip range in Ubuntu

I have two range of ip , 192.168.33.xx and 192.168.63.xx , I try to connect from 33 to 63 with ssh and also the other way around , but it never works … the error message is errormessage And the debug ...
user avatar
1 vote
0 answers
132 views

How to create Linux User & password automatically using bash Script [closed]

What is the best way to create a user account (in my case group name: devs) in a Group using bash scrip, with the followings : adduser $1 usermod -a -G devs $1 mkdir /home/$1/.ssh chmod 700 /home/$1/....
user avatar
  • 11
1 vote
0 answers
11 views

sftp Bad Ownership of Home Directory [duplicate]

When trying to connect to sftp, I get the error in auth.log sshd[53217]: fatal: bad ownership or modes for chroot directory "/home/cclloyd" When using the following sshd config Match group ...
user avatar
  • 611
-1 votes
0 answers
15 views

Execute Script during sftp login

Is it possible to have a script execute for each user every time they login to sftp? I have a 2nd sshd daemon running on another port they use to sftp to the machine. I want a login script to run ...
user avatar
  • 611
1 vote
0 answers
13 views

Dangling ssh sessions when my laptop goes to sleep

When I get up from my laptop (a Mac with MacOS Big Sur) for long enough that it "goes to sleep", my interactive sessions with ssh servers are broken. That is annoying but I could live with ...
user avatar
0 votes
0 answers
16 views

Linux (Ubuntu 18.04) ssh connection closed after login with -bash Input/Output errors

Currently running into an issue when SSH'ing into a remotely deployed edge computer. When logging in via SSH after entering the password the connection is closed, output of the terminal below: Welcome ...
user avatar
  • 1
0 votes
0 answers
12 views

How to return in normal mode in GCP VM after shield VM issue

After ugrading SSD size for a GCP VM, an integrity check issue occurs. This problem had been solve but my VM after many restart is always in emercy mode. I'm not able to SSH it. What is possible now ...
user avatar
0 votes
0 answers
25 views

Is there a way to repair SSH On GCP VM after shielded VM failure

I have a GCP VM on which is installed a Docker with Drupal. e2-medium with SSD 10Go After increasing the disk size to 20GB, I can no longer access the VM in SSH. My VM was failing to boot because of a ...
user avatar
0 votes
1 answer
32 views

No such file or directory when attempting to save the key

I am attempting to create a new ssh key for my new linux server on my MacOS and I am wondering why I am getting the following error: ➜ Projects ssh-keygen -t rsa -b 4096 Generating public/private rsa ...
user avatar
  • 179
0 votes
2 answers
275 views

Bad configuration option: pubkeyacceptedalgorithms

I want to connect to Red Hat Linux server, but I the the error Bad configuration option: pubkeyacceptedalgorithms when I use putty to connect to the server I get the error Network error: connection ...
user avatar
1 vote
1 answer
37 views

Connect to Server (it doesn't have external IP) over SSH

I got a small PC setup as an Ubuntu server and I have configured ssh-server to be able to connect to it over ssh. The problem starts here because I have no external IP provided by my ISP, (all devices ...
user avatar
0 votes
0 answers
14 views

Ec2 instance SSH access:not able to connect after the nginx installation

I am getting a weird issue in my EC2 instance. After the successfull creation i am able to login to server via ssh commad, but onece afte i installed the nginx , i m not able to access the server via ...
user avatar
0 votes
1 answer
37 views

Why is the FascistLogging ssh logging mode named that?

The docs describe Fascist Logging mode quite well, so I understand what it does. Basically it is a variant of debug logging enabled with FascistLogging yes But why is it named that? I'm sure the ...
user avatar
  • 131
-1 votes
0 answers
17 views

I am using a GCP instance and would be connecting to it using SSH

I would like to run 2 commands that need to run simultaneously. How Can I acheive this ? Command1: $ socket -s /home/dc-host/data/monitor Command 2: $ bash startvm.sh
user avatar
-1 votes
0 answers
22 views

How to use filemanager and enable ssh by editing files

I have access to a server file manager but I don't have access to the server console. Can I enable ssh by editing files on the server? Thanks
user avatar
  • 99
-1 votes
1 answer
25 views

why is port 35128 associated with ssh2? [duplicate]

I failed to login to my root account over ssh, and when doing so I noticed this interesting line in auth.log: "Failed password for root from [ip address] port 35128 ssh2" I'm not so ...
user avatar
0 votes
0 answers
26 views

How can I setup 2FA on non-interactive SSH connections?

I would like to add a level of security for logins to an SSH server (Ubuntu), using two factor authentication. One particularity on how the users connect to the SSH server is that sometimes they do it ...
user avatar
0 votes
1 answer
33 views

OpenSSH on Windows always binds sockets used for Remote Forwarding to LOOPBACK

Like the title says. Host A acts as a server (bastion-host, call it whatever you will). Now, host B performs: ssh -R 2222:localhost:22 user@A as a result a TCP socket gets spawned at A, but it is ...
user avatar
  • 121
0 votes
1 answer
18 views

trying to generate ssh keys of the vm but getting the error option requires an argument -- P

I have executed the below command manually in the vm and i am able to generate the ssh keys but when i tried using the same script in the automation pipeline from github actions i am getting the error ...
user avatar
0 votes
0 answers
6 views

While connecting to one ec-2 instance to another permission is denier

enter image description here While connecting to ec2 using ssh permission is getting denied.. I have copy ssh key also and both machines are configure to each others... Ping between them is also ...
user avatar
0 votes
1 answer
22 views

SSH access to remote 'dynamic' directory

short version I'd like to synchronize a remote directory, whose name changes. Something like (not working!): rsync -a 'test@192.168.56.100:~/.zfs/snashots/$(ls -d Automatic-* | tail -1)/foo' ~/foo ...
user avatar
0 votes
1 answer
76 views

How to ssh to a server via bastion(proxy) with key from the bastion(proxy) NOT origin

So I'm essentially trying to do this: ssh bob2@35.192.152.35 -t ssh bob2@test-vm the above works fine if I just put it into the terminal, however I am having a hard time trying to replicate it via ...
user avatar
-1 votes
0 answers
55 views

Connecting to a DB server using telnet

I have a db server that can only be accessed by from another server[cant access it from my local device] and the DB server can only be accessed using telnet, SSH is not supported by the DB server. My ...
user avatar
  • 1
0 votes
0 answers
12 views

Can't connect to my localhost server using Google secure shell

I'm trying to use Secure shell to connect to my own localhost server which I have created on WSL Ubuntu. But it's not connecting. It shows connection refused. What could be the reason for it? And any ...
user avatar
  • 97
1 vote
2 answers
34 views

Using public key SSH works, but SFTP gives error

On a server I installed openSUSE, configured SSH so only one user is allowed, only public key is allowed (no pam, no password), coming from specific IP. SSH works, X11 forwarding works, SFTP works. ...
user avatar
0 votes
0 answers
14 views

Error "no matching mac found" with ubuntu 10.04 and github

I have a web application mounted on an old server with Ubuntu 10.04.4 LTS and for a short time I have not been able to deploy it due to a problem that occurs with the connection to github to download ...
user avatar
  • 1
0 votes
1 answer
52 views

OpenSSH - sshd_config - Allow sftp-chroot AND normal ssh login with same user

Hopefully not a dup, but can't find an answer to this one... I found this, which on the surface seems to be the same, but is very old and the only answer in it does not answer the actual question: ...
user avatar
-2 votes
0 answers
58 views

Once a machine has ssh access with 1 user via ssh keys, That machine can ssh in as a different user. How can I prevent that on the server?

I apologize if this is a beginner question or has been asked before. I'm not seeing any duplicates and have been searching for awhile. In my own tests I can confirm that once a local machine has ssh ...
user avatar
  • 1
0 votes
0 answers
83 views

Receiving "SSH tunnel creation failed: open failed" from datagrip when testing connection

When attempting to connect to a remote mysql server through an ssh tunnel using datagrip on windows 10 as the client, I receive "SSH Tunnel Creation failed: open failed". I am able to ...
user avatar
0 votes
1 answer
41 views

SSH refuses to allow specific user to login directly via ssh

I have a specific user (Lets call them user through out this post) on a host that displays the following errors when trying to ssh via public key auth: PTY allocation request failed on channel 0 ...
user avatar
  • 143
0 votes
0 answers
38 views

Access Apache NiFi running on remote VM via browser and PuTTY

I'm trying to access a Virtual Machine running in Google Cloud which has a Apache NiFi service running on port 8080 on the VM. I have managed to create an ssh key and upload the public SSH key to the ...
user avatar
-1 votes
0 answers
101 views

Why am I getting kex_exchange_identification: Connection closed by remote host

So I am working on setting up my raspberry pi to tag data on vlans. The port its plugged into is a trunked port. I followed these 2 guides Link1 Link2 and I can ping the interface so I know I can ...
user avatar
  • 1
0 votes
1 answer
29 views

fail2ban appears to be working but server still receives connection attempts

fail2ban mistery! Everything seems to be working and well configured but server still receives connection attempts. [moso@matrix ~]$ sudo systemctl status fail2ban ● fail2ban.service - Fail2Ban ...
user avatar
  • 1
0 votes
1 answer
29 views

Does Linux sshd support sftp RESUME

a short question; does Linux sshd support resume on file transfer via sftp? I've seen other similar questions, but not any real answer.
user avatar
  • 246
0 votes
1 answer
63 views

mounting smb via ssh tunnel - malformed UNC

on my Fedora box i want to mount a Windows Server Share via a ssh tunnel. The setup consists of two parts, ssh and mount part. Part 1.) i do a ssh portforwarding of Port 445 from windows server to my ...
user avatar
  • 111
0 votes
0 answers
21 views

Unable to ssh over openvpn

I have a setup available on AWS done by making use of this link: https://aws.amazon.com/blogs/awsmarketplace/setting-up-openvpn-access-server-in-amazon-vpc/ However, over VPN, I am unable to reach to ...
user avatar
0 votes
1 answer
31 views

Single SSH login for multilpe machines?

I have a number of physical (desktop) machines running at the office as part of a new network to handle processing & serving Open Source data; some of these machines also house VMs. At the moment, ...
user avatar

1
2 3 4 5
171