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
16 views

How to properly set up private key for gitlab runner

I would like to make this scenario possible (some problem unrelated aspects were simplified for better understanding) Imagine we have a simple gitlab repository with only two files. index.html - ...
  • 101
1 vote
1 answer
33 views

SSH tunnel throws an error: bind [ip]:801: Cannot assign requested address channel_setup_fwd_listener_tcpip: cannot listen to port: 801

if I forward the port from the server to my localhost (I used my web server on apache on my other virtual machine as the server for forwarding), then everything turns out without problems. ssh -L 801:...
  • 11
0 votes
0 answers
16 views

Cannot access file over ssh [closed]

I cannot seem to access a necessary file through ssh. I am using VsCode and am trying to open a PHP file in my browser from my local computer. File Setup The local_html folder is a subfolder of my ...
  • 3
1 vote
1 answer
10 views

How to restart sshuttle automatically

I am using sshuttle to route some traffic automatically via an ssh jump server. It works well but in some situations i.e. switching to another Wifi network the connection breaks an i'll have to ...
  • 151
0 votes
1 answer
26 views

I want to connect to my repo via SSH on a remote server, do I need to store my private keys on the server as well?

I'm following these steps to be able to connect to my BitBucket account/repo on a remote server. I'm a bit confused. I already have a separate pair of keys for BitBucket (i.e. to do stuff on my local ...
1 vote
1 answer
27 views

Can I use the SSH tunnel under a VPN as a VPN server?

I am work at home (China mainland). After connected (via VPN) to the school IP, I got the permission to ssh my computer in campus, but cannot visit google.com. However, my computer in campus can visit ...
0 votes
1 answer
27 views

The ssh-agent process is not visible to the user who created it but is visible to root

I have adopted the following snippet from Visual Studio Code's documentaion to create an ssh-agent on login: if [ -z "$SSH_AUTH_SOCK" ]; then # Check for a currently running instance of ...
  • 101
0 votes
1 answer
23 views

Why can't ssh run rbenv in the shell?

I'm trying to run a bash script on a remote server to install ruby via rbenv. #!/bin/bash # ssh deploy@192.168.50.2 'bash -s' < configure.sh echo "ruby 3.2.1" rbenv install 3.2.1 --...
  • 173
0 votes
1 answer
29 views

Connection to Azure VM through SSH doesn't work all the way

I have a development vm setup in a private network area in Azure. Now I'm trying to connect to it via SSH and it's failing for a certain reason. I'm sure that I uploaded the correct public key to the ...
  • 101
0 votes
1 answer
14 views

sshd not providing ecdsa/ed25519 host key algos

we have setup'd a bastion that only responds with the ssh-rsa host key algorithm when querying: ssh-keyscan bastion.ops.dev.xxx.com # bastion.ops.dev.xxx.com:22 SSH-2.0-OpenSSH_7.4 # bastion.ops.dev....
  • 123
0 votes
0 answers
27 views

Borg-Backup failed with Command in authorized_keys behind a ssh-tunnel?

I setup a PoC for a pull backup with Borg Backup. In this example a client can only reach the backup server behind a proxy server. In this case the server where Borg Backup is running open a temporary ...
  • 13
0 votes
1 answer
52 views

Do not match Host * in ssh config if another rule was applied

I have the following SSH config: Host work.github.com HostName github.com User git IdentityFile ~/.ssh/work IdentitiesOnly yes Host * IdentityFile ~/.ssh/personal Where I want to ...
  • 1
1 vote
1 answer
79 views

Error in libcrypto connecting RHEL 9 server to Centos 6 via SFTP/SSH

I am trying to connect from a new RHEL9 server to an older Centos 6 server to SFTP files from the older server to the new one for an upgrade, but when connecting from 9 to 6 I get the following error: ...
  • 21
0 votes
0 answers
19 views

running "ssh $hostname -o ConnectTimeout=..." again and again in close time seems to disable ConnectTimeout option

I am improving a script made by third parts. The script runs on a Ubuntu OS. This scripts contains a loop in which about there are about 10 if statements (they involve only localhost), and each one ...
  • 103
0 votes
0 answers
63 views

How to diagnose out of space errors?

Twice I've noticed out of space errors in my php app and both times I've received the error "No space left on device while writing config" when attempting to login via ssh to troubleshoot ...
  • 113
0 votes
1 answer
79 views

Does SSH compression make the protocol more insecure?

I'm auditing one ubuntu server using a tool named lynis, which performs several tests to configuration files and give suggestions to harden the servers. For example, it suggest to reduce the value of ...
  • 111
0 votes
0 answers
22 views

Can't SSH (or generally access) server over Wi-FI [migrated]

When trying to ssh or ping my Raspberry Pi server on my LAN I get a "No route to host": $ ping 192.168.50.249 ...
  • 1
0 votes
0 answers
28 views

From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP?

From a running EC2 instance, how do I download the AWS generated private key for use with SSH and WinSCP in PEM format? I expected to see Download on the Actions menu, but it's not there. I'm ...
  • 133
0 votes
1 answer
36 views

SSH TCP Forwarding and VSCode

Thanks for taking a look at my question. I've been writing code from my desk to a remote server managed by WHM/cPanel (for which I have full root access) with VS Code Remote SSH functionality for a ...
0 votes
0 answers
14 views

Webmin backup via ssh not working with remote rush shell

I want to make backups from Webmin, initially the configuration backups, to a remote server securely. I'm new to Webmin and to rush. This seems to be a config issue with Webmin, rush, or sshd. My ...
-1 votes
0 answers
12 views

SSH login with partially functioning DDNS

My ISP is offering a DDNS service which is not functioning as it should. Forward rDNS is not working and I'm trying to secure my server by denying all connection attempts via SSH, but allowing all IPs ...
  • 1
1 vote
2 answers
90 views

How can I make SSL Lets Encrypt certificate auto renew on Ubuntu

How can I make this certificate to auto new every time so I don't have to renew it manual or it will auto renew itself? ssl_certificate /etc/letsencrypt/live/www.vgopromo.com/fullchain.pem; # managed ...
0 votes
0 answers
49 views

Connect to address xx.x.x.xx port 22: Connection refused

I'm trying to connect to a server using ssh command but I have this error connect to address xx.x.x.xx port 22: Connection refused I have already checked if ssh is installed, if the port 22 is ...
0 votes
0 answers
20 views

Every ssh connection attempt loads forever

For the last few hours I've been connected to my server through ssh. I was still connected in the terminal and wanted to start an ssh session in nautilus to transfer some files. When I typed in ssh://...
  • 135
0 votes
0 answers
12 views

What can I do about a BvSshServer error that's linked to a disconnected server?

Here are the Specs of our current server: Poweredge R540, Windows Server 2019 (version 1809) We swapped this current server in for an older Poweredge R530 running Server 2012, but we've been receiving ...
0 votes
1 answer
136 views

Ansible playbook can not connect to remote user through ssh => unreachable & permission denied

I'm building a complete solution to setup and harden our vps (ubuntu 22.04) with bash script and Ansible playbooks. What I want to do is the following: Create a custom group "sudogroup" ...
0 votes
1 answer
21 views

Where to put files into my Ubuntu server so I can access them publicly from a web browser?

Sorry if this is a very dumb question, but I'm totally new to server administration. I already know how to add files to a web hosting solution through FTP/SFTP, however I have no idea how I can do ...
0 votes
0 answers
23 views

limitting traffic usage per user in ssh

How can I limit ssh tunnel traffic usage per user ? Imagine you have 3 users who can connect to a server remotely and establish a ssh tunnel. How can you limit those users to use certain amount of ...
0 votes
0 answers
24 views

SCP on Ubuntu OpenSSH Server for Cisco backups

I am having a bit of an issue and I believe I need some help. We have an On-prem SFTP server which will be deprecated soon, so in the mean time I need to set up another SFTP option in AWS running on ...
0 votes
0 answers
19 views

How do I use SVN+SSH with a custom port and externals on Jenkins

We use SVN with SSH because it is better than anonymous access and the HTTP setup looked complicated and difficult to use when I was setting up authenticated SVN. Subversion uses a custom port because ...
  • 348
0 votes
0 answers
21 views

Log Ssh Traffic per User [duplicate]

i use ubuntu server for ssh tunnel. i want to save log for ssh trafic per user. One of the server users is creating brute force attacks and I want to find that person. my os: ubuntu 18
  • 1
3 votes
0 answers
71 views

Unable to su or ssh as anyone but root on CentOS 7

I seem to be unable to ssh or su as a local user on my CentOS 7 machine as of today. $ adduser ndejay $ passwd ndejay Changing password for user ndejay. New password: Retype new password: $ su ndejay ...
0 votes
2 answers
43 views

Best Path for nginx Files [closed]

I've always struggled with various paths for nginx files and where they should be positioned. As we know, we can change where we can park both the www directories for our web app, as well as the ...
  • 125
0 votes
0 answers
75 views

shell request failed on channel 0

On the DigitalOcean droplet, I have initiated 4 screen sessions for the Python scripts fetching data via API 24x7 and inserting it in MySQL(installed on the same droplet). After a certain period of ...
  • 255
0 votes
0 answers
12 views

Linode instance not responding to SSH/HTTP except when through GitHub Action

I have a Linode instance configured to run Django with Apache, and it has been working fine for the last 6 months. The instance runs on Ubuntu on shared CPU, with the kernal being "Latest 64 bit (...
0 votes
0 answers
69 views

How to start ssh-agent without eval [migrated]

What I already know To start ssh-agent you need to use the command eval $(ssh-agent) You have to do this because of security reasons. A child process can't change environment variables of the process ...
1 vote
1 answer
77 views

ssh server show message after login successful

I have one debian ssh server question , I want to display a message after successful login I have used motd, but the localhost will display it. I don’t want the local machine to display it. I only ...
  • 11
0 votes
0 answers
17 views

Terminate ssh session on startup

Ssh session can be terminated within working window if there is some trouble on ssh server. Depending on the nature of the problem there is different way to do this: If the server is not reachable ...
  • 470
0 votes
2 answers
55 views

port forwarding using proxy ip

I am trying to access my machine remotely through ssh with my public IP. The regular way to do this would be to allow port forwarding on my router and then do: ssh ubuntu@myPublicIp but my ISP uses ...
  • 121
1 vote
1 answer
45 views

Adding my SSH key to new user with only SSH access through key

I'm quite new to this, and I've looked through questions but haven't found one that quite matches my problem, or rather I didn't sufficiently understand them to be able to solve this issue. I have a ...
-1 votes
1 answer
23 views

Unable to connect to SSH server locally with pubkey from laptop for ssh-copy-id

I cannot for the life of me figure out where I'm going wrong here and need other eyes to point out my mistake(s). I'm running an sshd service on my arch desktop locally with ufw opening the designated ...
  • 111
0 votes
1 answer
55 views

Prevent SSH lockout due to file permissions

I followed the common practice to only allow public key login with SSH into Debian, then somehow I accidentally changed the permission of ~/.ssh/ folder (I think it got owned by root), after that ...
0 votes
1 answer
44 views

ConfigServer firewall enable SSH for dynamic dns

I am running ConfigServer Firewall on my server. Currently I have a few dynamic dns entries added to the LFD Dynamic DNS section. Those dyn dns hosts though cannot SSH to the server - I can only get ...
  • 103
0 votes
1 answer
28 views

How to install mosh on oracle linux

I wanted to install mosh on oracle linux, but I was faced with the fact that such a package does not exist. $ sudo yum install mosh Last metadata expiration check: 3:12:40 ago on Wed 15 Feb 2023 01:05:...
0 votes
0 answers
28 views

sshd allows login with no authentication all accounts

This morning I was logging into an Ubuntu 18 machine that luckily we use for testing and is not on the Internet. When my SSH client got to the authentication point I accidentally hit 'ESC' which means ...
  • 13
0 votes
1 answer
59 views

limit users to use ssh nologin to one use at a time in ssh tunneling?

I have provided ssh nologin access for family members(with useradd -s /sbin/nologin newuser) to use it in ssh/http injector app in Android devices and NapsternetV app in iPhone devices to use as SSH ...
0 votes
0 answers
55 views

SFTP : How can I allow one user to do sftp and ssh and see all folders?

I have an SFTP server where I would like to authorize one user to do ssh and sftp and be able to see all folders of all users. It should be the admin. For all the other users, they should only do sftp ...
  • 1
0 votes
0 answers
118 views

ssh illegal option while trying to connect to remote server

trying to ssh from my macbook pro, to a remote server, ssh ayan@ServerIPAddress gives the following error ssh: illegal option -- ? usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] ...
0 votes
1 answer
163 views

Permission denied (publickey) when try ssh into Oracle Cloud

I downloaded two keys ssh-key-2023-02-09.key and ssh-key-2023-02-09.key.pub. I did chmod 400 ssh-key-2023-02-09.key ssh -i ssh-key-2023-02-09.key user@ip Permission denied (publickey)
  • 101
0 votes
0 answers
32 views

how to use PAM auth for ssh key clients?

How to unlock ssh private keys with PAM, so I can use fingerprintd module? There are many questions here discussing PAM and kerberos for sshd auth, but I can't find anything on the client side. Also, ...
  • 263

1
2 3 4 5
176