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
-2 votes
0 answers
29 views

How to properly ssh into my remote (mac) computer from abroad?

I have a mac (mac 1) computer connected to the internet via a router from an internet proveider in country A. I am now in country B and need to ssh from another mac (mac 2) into mac 1 in country A. I ...
0 votes
0 answers
8 views

sshuttle automate service runs with error

I have written a service as it was given in this question but when I run the service I get only error in status. service: GNU nano 6.2 /etc/systemd/...
0 votes
0 answers
9 views

SSH won't allow me to join when using public network

recently i was setup ubuntu server and found out only local network wifi can be accessed thru ssh but sadly not in public network wifi. Is there any solution that can allow the ubuntu server to access ...
-2 votes
0 answers
22 views

Use intermediate server to allow ssh access to inaccessible server? [closed]

I want to ssh into computer B from computer A. I have physical and administrative access to both A and B. For reasons I don't fully understand, I cannot connect to B from A using the public ip ...
1 vote
1 answer
24 views

Validate all public keys in authorized_file

In my authorized_file i have multiple public keys against one private key. Now i want to add a task in ansible which will validate that all public keys are valid keys and good for connection. My aim ...
0 votes
0 answers
12 views

FabricOS 8.2.2d: "rbash: setcontext: command not found" through SSH

Context: I’m writing a script that monitors all SFPs on a SAN switch and needs to iterate over all FabricID contexts. When I log into a FabricOS 8.2.2d (also with 9.0.1) device through SSH then type: ...
  • 101
0 votes
1 answer
40 views

Detect when an SSH or SFTP connection has closed

I have an application which receives a collection of files by sftp. I need to know when that session has finished so I can process the batch of files in a group. Currently I'm using the brute Force ...
-1 votes
0 answers
17 views

How can i ssh forward my home network service to my vps without accessing it using its port number [closed]

I am trying to access my webservices on my raspberry pi in my home network. There for I am using autossh for an ssh reverse tunnel. SSH_OPTIONS="-N -R :2222:localhost:22 -R :8010:localhost:80 ...
0 votes
1 answer
34 views

WinSCP with sk-ed25519 Key

Since pageant cannot work with security keys / sk-ed25519, i moved over to OpenSSHs agent on Windows. Generating and importing sk-ed25519 is no problem. use these keys for open ssh sessions also works ...
-2 votes
1 answer
52 views

ssh login with credentials from mDNS [closed]

Initial Question I am trying to setup a box that allows anyone on the same network (L2) to login via ssh. I am using avahi-daemon with a ssh service, that also broadcasts the username and password as ...
0 votes
0 answers
20 views

SSHFS performance tanks, why?

I have two Ubuntu 22.10 computers connected one to another via SSHFS. When I copy small files there is no problem but... once I start copying several gigabytes of data at a time, the performance sinks ...
0 votes
0 answers
36 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
2 answers
77 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:...
  • 13
0 votes
0 answers
17 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
23 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
27 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
0 answers
27 views

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

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 ...
1 vote
1 answer
30 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 ...
  • 111
0 votes
1 answer
26 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
33 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
16 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
34 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
64 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 ...
  • 3
1 vote
1 answer
149 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
20 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
67 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
91 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
37 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
17 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
114 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
55 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
16 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
226 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
28 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
29 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
27 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
24 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
84 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
45 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
114 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
15 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 (...
1 vote
1 answer
89 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
21 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
64 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
58 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
2 3 4 5
176