Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

SSH (Secure SHell) is a protocol for securely running commands on a remote computer. Use this tag for questions about configuring, using and trouble-shooting SSH client and server software.

0
votes
0answers
8 views

How can I modify a MobaXTerm shared session file that is located in a shared folder [on hold]

I want to modify a shared session file that is located in a shared folder. I don't want to modify the file itself, but the content and the sessions. To reproduce that it isn't possible, simply go to ...
2
votes
0answers
23 views

How can I write directly to a Solaris FIFO pipe over ssh?

I have a Solaris server running a process that has its input and output redirected into FIFO pipes (fifo_in, fifo_out). How can I connect to these two pipes over ssh? I would like to be able to ...
1
vote
1answer
43 views

Create temporary folder for ssh session only in Ubuntu

Is there a way to achieve this in Ubuntu: When ssh session to some machine starts, special folder X is created in memory on that machine. Contents of folder X and ability to interact with it are only ...
1
vote
0answers
11 views

sshfs: chroot all non-root users to specific directory

On a server I need unrestricted ssh access for root, and restricted for all other users. I would like to restrict all non-root users to: no ssh login only allow mount /mnt/data/ using sshfs I see ...
0
votes
0answers
16 views

enable dynamic port forwarding from app server to client over ssh

For an application on a server for which multiple user sessions are to be created for different clients over ssh. How to assign the port on server for client to listen?
2
votes
1answer
39 views

SSH only after login?

I've freshly setup a rather standard current Arch Linux and encounter a problem that I can not get a grip on: DHCP service is enabled and network is online (ping succeeds with hostname and IP ...
0
votes
1answer
33 views

Abort slow NFS operation

I'm connected to a server via ssh, on that server I'm trying to access an NFS directory. However, due to connection issues, basic commands like ls sometimes, but not alway, take forever to complete ...
0
votes
1answer
59 views

Automatically ssh into remote host depending on the folder you're in

Is there a solution (or plugin for zsh) that will allow me to remote ssh depending on the folder in local OS? Similar to PyENV. So if I develop a project and do cd /home/projects/ERP ssh production ...
0
votes
0answers
28 views

SSH asks for password but I can get in thru serial port without it

I have an arm7 board running GNU/Linux, it's connected to the internet via Ethernet port. I am trying to SSH in to it as root@IPaddr but it is prompting me for a password. I am pretty sure the ...
3
votes
1answer
77 views

ssh routing between multiple linux system containers transparently

I have system where I run multiple containers. Each container is a linux system with a specific purpose and every container has a ssh server enabled. I want to make an entity that manage new ssh ...
1
vote
0answers
20 views

Understanding how MobaXterm keeps an ssh connection alive

I want to have a stable ssh connection to a server where I do things. That would last for days or weeks. In general, one can set TCP keepalive to more than 7200 seconds: Socket reset by peer ever 2 ...
0
votes
0answers
16 views

Sudo sshuttle -r -x

Sshuttle can direct all you local internet traffic through SSH, like a poor man VPN. sshuttle -r root@11.54.78.145 0/0 --dns -x 11.54.78.145 Then it asks for local root password. Can I put sudo ...
0
votes
0answers
9 views

could I run a dbclient to get a password from remote when I was in boot

I have several computers encrypted with LUKS. I want save their passwords or password-files on a remote server ,so I should use the ssh server on the remote machine. Doing so caused a problem. My ...
0
votes
0answers
31 views

Is there a way to trigger a script on sftp session exit?

I'm looking for a way to start a shell script after a sftp session exited. Is it possible to trigger /home/user/.bash_logout via sftp, how does it work? I tried to set RequestTTY force in ~/.ssh/...
0
votes
2answers
60 views

How to redirect website in restricted network through ssh tunnel

I have established a reverse ssh tunnel into a restricted network to an aws server, i.e. to access it, I ssh into the aws server and from there I get access to the machine in the restricted network on ...
2
votes
1answer
16 views

How to force gnome-keyring-daemon to ask for my passphrase

This is a follow-up to this question: GNOME keyring daemon sometimes not asking for passphrase, need to provide it via command line Is there a command to force the gnome-keyring-daemon to ask for my ...
1
vote
1answer
36 views

How connected to a pc from an external network with ssh [closed]

I need to access to a computer via ssh from an external network. The pc must be accessible using the ~/.ssh/id_rsa ssh key, i' m not sure how connect. I set some NAT (i don' t know if is necessary) ...
0
votes
2answers
35 views

Can you force the SSH “watch” command to append the output instead of overwrite?

I'm attempting to watch my network statistics via putty and want to write the statistics to a log file every one second. I've configured putty to log he ssh session to a log file. However, I'm ...
-1
votes
0answers
5 views

access restricted http server via reverse tunnel

I establish a reverse tunnel connection to a host in a restricted network using: /usr/bin/autossh -M 22222 -f -N -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /path/to/my/key.key -R ...
0
votes
0answers
25 views

Can't connect to raspberry pi over ssh after just connecting!

This is the second time its happened in a row . I create the raspbian image and edit it so i can ssh in. i ssh into it with the default raspberry login. change the password and logout. when i try to ...
0
votes
0answers
9 views

Running an OpenVPN server on a VPS and using the same VPS for openvpn socks proxy using ssh

I have a raspberry pi on which I set up an OpenVPN server (running on por 4444) using PiVPN. It works perefectly fine but I can't connect to it on my University Wifi because of DPI. So I decided to ...
1
vote
0answers
28 views

Remove inactive SSH process (on server) after connection dropped (on client)

I'm using the following command on a client for port tunneling: autossh -M 20000 -4 -N -f -R 18822:localhost:22 <user>@<vps-ip> Sometimes the client would lose connection or power for a ...
0
votes
1answer
35 views

What may cause my ssh port forwarding to fail?

I'm setting up syncthing on my qnap nas, and currently at the point where I want to forward the nas' GUI to my laptop, which is on the same network. The GUI is available on the nas on port 8384: [~] #...
0
votes
4answers
54 views

Get unknown static IP address

I have Debian squeeze machine physically connected to my network. This machine has static IP address which I don't know. It is not possible to connect monitor to this device. Only one possibility to ...
0
votes
0answers
7 views

Linux visual studio code via VirtualBox does not connect to internet on public networks [duplicate]

I have tried multiple locations- Amtrak, coffee shops, etc. and I get some of the same errors- can't connect to port 443 and port 22; however I can connect on Windows Sublime...I have excellent ...
1
vote
2answers
21 views

SSH connection problem (timeout) from outside to ppp0 interface (4G modem) on Raspberry Pi [closed]

I am having difficulty establishing SSH connection from outside to Raspberry Pi that has USB 4G modem as interface. I get timeout when trying to connect with ssh: ssh -l pi ccc.ccc.ccc.ccc -p 22 ...
1
vote
0answers
18 views

Unintentional bandwidth throttling — where else to look?

This is embarrassing, but I seem to have inadvertently set a persistent bandwidth throttle on SSH connections from my Ubuntu machine. When transferring files from a remote server via scp, sftp, or ...
0
votes
0answers
25 views

Mounting a filesystem while excluding certain directories

I'm using SSHFS with Fuse currently to mount our LAMP stack web server. Everything works however it takes several minutes to mount all of the subdirectories due to our enormous "node_modules" folders. ...
0
votes
1answer
62 views

Testing active ssh keys on the local network

I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </...
0
votes
0answers
8 views

How to secure a common tunnel relay server

I would like to use a single AWS server as a relay to access multiple client hosts that each would have a reverse ssh tunnel to the server. I need them to be isolated between each other meaning that ...
0
votes
0answers
24 views

autossh not reconnecting because of SELinux on Gentoo Hardened

I have a Gentoo system where autossh is used to establish a dynamic socks proxy. The system itself is behind a Tor transparent proxy. It gets DNS however through an ssh dynamic proxy to a Tor hidden ...
0
votes
0answers
22 views

SSH from local to intermediate host to final

I am using a jump server to connect to a final host with this command: ssh -t intermediate ssh final but I want it to work with a normal ssh or scp command, so I have tried to setup the config in ....
1
vote
1answer
33 views

Can I change terminal type used to login through Net::SSH in perl?

When I login on some particular server through Net::SSH in perl (which I do not have admin access to), I get the following error: %SECURITY-SSHD-4-WARNING_LOGIN : The requested term-type '' is not ...
1
vote
1answer
18 views

Using sshfs along with ssh ControlMaster connection

I want to use sshfs to mount a directory from the remote system automatically when I make the first ssh connection and to unmount the directory when I finally disconnect. I currently use ssh's ...
0
votes
1answer
42 views

sudoers - allow user to ssh as another user and run a specific command

I am writing a Bash script to manage various JBoss instances across multiple servers. The script allows users to check the status of each instance as well as stop/start them. The script is situated ...
1
vote
0answers
43 views

Connect to VM through SSH (Google Colab and PuTTY)

I want to connect to a Google Colab computer via SSH because it has really shit text editing abilities, and it likes to hide the characters I type in the interactive shell. This is code I have on a ...
0
votes
0answers
23 views

gpg-agent enforce key order with multiple ssh keys

I have two SSH keys (one GPG key with the authentication capability on a smartcard and one standard ssh key). When I try to to connect to a server that accepts both keys, gpg-agent wants to use the ...
1
vote
1answer
62 views

SSH fails with error “Permission denied (Password)”

I am trying to SSH into a PC (lets call it B) with Ubuntu Server 18.04 from a Raspberry Pi (lets call it A) with Raspbian Stretch Lite. Both are on my local network. PublicKeyAuth is disabled and ...
1
vote
1answer
23 views

I cannot reset password using rescue mode

We have a problem on a centos 6 server. normally, PasswordAuthentication is off. When I get connected using rescue mode, I execute these commands : mount -o remount,rw / chroot / /bin/bash passwd ...
5
votes
2answers
166 views

How safe is SSH when used for tunneling?

Scenario: I want to connect from Client A to Client B using SSH/SFTP. I can not open ports on either client. To solve this issue, I got a cheap VPS to use as a relay server. On Client B I connect to ...
0
votes
0answers
27 views

Invalid credentials: munge -n | ssh hostname unmunge issue

I am trying to perform the following command: munge -n | ssh hostname unmunge I received the following error: unmunge: Error: Invalid credential My munge.key is propagated through ssh to the ...
0
votes
2answers
38 views

What is the purpose of keys present in the `/etc/ssh` folder?

Using ssh-keygen I was able to generate a public-private key pair one Machine#1 and then I copied the public key to Machine#2 using ssh-copy-id. On Machine#2, I noticed that there are 3 key-pairs ...
1
vote
1answer
64 views

Can't ssh to server after Debian upgrade to Buster without previous login from “trusted machine”

I have just upgraded my Debian server from Stretch to Buster. One strange thing I can't seem to resolve: $ ssh vlastimil@192.168.0.102 -p [censored] -o ConnectTimeout=5 -i /home/vlastimil/.ssh/...
0
votes
0answers
14 views

Route everything in server Centos7 through VPN except SSH on Port 22 and Port 2030 http

I have a server Centos 7 and I want to setup a VPN on it to route all traffic. I don't want to block myself out when establishing the OpenVPN connection so I want port 22 tcp to be unaffected and ...
0
votes
0answers
22 views

Sudden 'Connection to *** closed by remote host' while working

So, I often connect to my computer from outside via ssh, and normally there is no problem. But from time to time, I get 'Connection to (my host name) closed by remote host' suddenly after 10 minutes ...
0
votes
0answers
29 views

Can't connect to NAS Dashboard but can SSH

I've got a WD MybookLive which has Trasnmission and sickbeard installed on it. I recently moved and re setup my network and now I can't connect to the dashboard by going by either http://mybooklive....
1
vote
1answer
63 views

How to see command history log from SSH

For some reason I can't see the command history log if someone ssh's into my account and runs some commands from my user account. If I run the history command in the terminal I only see my own ...
0
votes
0answers
16 views

Make SSH daemon override /etc/default/locale

Currently in my remote machine the /etc/default/locale sets only LANG, so even if my SSH forwards LANG and LC_*, it would be overridden to the LANG in default locale. LC_* variables works as expected. ...
0
votes
1answer
23 views

SSH connection times out when trying to remotely connect to my personal computer from laptop on another network

I have a desktop computer and a laptop. Both run Debian 9.5. Both have openssh installed. On my desktop, when I run ip a, I see this as part of the output: enp0s31f6: <BROADCAST,MULTICAST,UP,...
0
votes
3answers
50 views

SSH with Command Doesn't Run as an Alias

I have the following command to remote into a local server and tail -f the latest log file for an application that I have. The command works perfectly fine from the command line - ssh user@hostname ...