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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [ssh]

Secure Shell; a network protocol that allows data transfer over a secure channel between two networked devices.

0
votes
1answer
10 views

FTP with Terminal and Vim

Is is possible to transfer files from local machine to server using FTP and terminal. For instance, can I create a file locally with vim, write my code, save it, then transfer that to a server without ...
1
vote
0answers
13 views

Some SSH User Authentications Fail Amidst a Large Flurry of Such Authentications

I am working with a cluster of 20 hosts, all running CentOS 7.3. I am attempting to create an automated test to check that: Our expected network connectivity is in place Our SSH Single Sign On (SSO) ...
0
votes
0answers
13 views

SSH & Windows 10: Connection Works With Powershell and Git Bash But Not With Other Tools

I have generated a pair of keys and have added the public key to my server. When I want to connect to my server I use the command: ssh [username]@[server]. This works fine when I'm using ...
0
votes
1answer
22 views

How to connect multiple Virtual machines to SFTP using Key based authentication towards a remote machine

I have set of Virtual Machines (VMWare) and I want to connect to remote SFTP server using public-private key based authentication. Initial transfer of public keys from each of the VMs to remote SFTP ...
1
vote
0answers
27 views

Cygwin SSH server works with SFTP but not with PuTTY

I followed this video reference https://www.youtube.com/watch?v=dL-9k4riBps (tutorial and explanation on how to restrict a user to their home directory with sshd_config, chroot directory and windows ...
0
votes
1answer
32 views

Is it possible not to have an ssh password for a user when coming from a specific network?

I would like to login to ssh without providing a password when connecting from a specific network (I am aware of the risk). Is this something which can be configured? Please note that I am not ...
1
vote
0answers
11 views

Why can termius connect to ssh while nassh cannot

I have managed to get sshd running in Termux. I can connect to the sshd server using Termius. I tried to connect using nassh, but I'm getting a "Connection refused" message. Both apps are configured ...
0
votes
1answer
27 views

Execute a script as root when non root user logs in

I've seen this question asked before here and here but they're pretty old and I haven't been able to get any solution to work. Basically I need to run a script or command automatically as root each ...
0
votes
0answers
26 views

Can't SSH to machine behind NAT. (I know this is common, but I'm at the end of my rope here.)

I am using a Netgear WNR2000v5 router. The router itself has a static ip address, and is set up to utilize Network Address Translation. I have enabled port forwarding in the gui interface, and have ...
0
votes
0answers
9 views

virtual box shared directories not showing up in cygwin when ssh'ing into it

I've set up too shared directories (Permanent, Automount) between my Linux Mint host and my Win7/Cygwin guest. On the guest, if I open a cygwin terminal and run mount, they show up as: E: on /...
0
votes
0answers
16 views

Ssh'ing in and out of a virtualbox guest

I've set up port forwarding and allowed a firewall exception so I can ssh from my Linux Mint host into a Windows7/Cygwin guest. #from linux host hostuser@host$ ssh -p 2222 guestuser@localhost What ...
0
votes
0answers
11 views

shell request failed on channel 2

I have a ssh server which I used to connect to it via bitvise SSH client on windows. now I want to connect via my ubuntu command line to this server with this command : sudo ssh -oHostKeyAlgorithms=+...
1
vote
1answer
44 views

How to use ssh on cpanel server?

I want to entry to my cpanel server, but I can't do it. This is what I did. I am going to the login page of my server on cpanel and I got in. Then: Security -> SSH Access -> Manage SSH Key -> ...
0
votes
1answer
41 views

SSH equivalent of PuTTY remote forwarding?

I need help with finding the ssh equivalent of PuTTY remote forwarding. The scenario is that if I use PuTTY remote forwarding like this I am able to access localhost:3030 by connecting to remote:3000....
1
vote
1answer
47 views

SSH “refused key” only with public IP, works locally

So my issue is that I'm unable to connect to my SSH server (running on Linux Mint Sarah) from my client (Windows 7 via PuTTY). Only works through the local IP. Both server and client are on the same ...
0
votes
0answers
21 views

Batch script for automatic password submition

I have a windows 10 computer and a very old laptop that I ran Ubuntu on. I often use that Ubuntu laptop but it's really old so mostly I connect to it via ssh and do my work in the terminal. It looks ...
1
vote
0answers
18 views

How to view a .rar file content remotely in a shared cPanel server (hostgator)?

I've tried using unrar via SSH but this command is not installed on my shared hostgator account. Is there any application that does this in this kind of environment? How to view a .rar file content ...
2
votes
2answers
49 views

How does one forward a TCP connection (specifically MyQSL client-->server) through a multiple hop SSH tunnel?

I want to open a connection to a remote MySQL database. This database is in a private subnet on a different network, so I cannot directly open a connection to it. Remote SSH access is also ...
0
votes
2answers
16 views

Copying to an NTFS filesystem on a remote machine while presevering metadata

I want to copy a bunch of files to a NTFS partition on a remote machine while presevering the file dates. Preserving metadata on a local copy is already tricky on an NTFS filesytem: $ cp -p testfile /...
2
votes
0answers
29 views

Unable to access a linux server behind NAT via reverse SSH tunnel with passwordless SSH login

Problem I cannot connect to my homeserver via passwordless SSH login from my clientcomputer/remotecomputer via my relayserver. I get homeserver@localhost: Permission denied (publickey). History/...
0
votes
0answers
34 views

nscd on ipv6 dhcp with link-local addresses causes “ssh: connect to host myserver port 22: Invalid argument”

(I figured out this is related to nscd; please see the bottom of the question) I'm trying to connect to a headless server via my laptop; they share a wired link via a Linksys wireless router and TP-...
1
vote
1answer
41 views

How do I exit from the Terminal in Windows Subsystem for Linux?

I have installed Windows Subsystem for Linux (WSL) on my Windows operating system and am able to see Terminal in Visual Studio Code Editor. So I typed help ssh command and hit enter, since then I am ...
0
votes
2answers
42 views

Automatize multi-hop SSH and SCP with passwords

I want to access some host from my personal computer, but I have to access an intermediate server first, because the final destination cannot be seen from public internet. The thing is that I have to ...
0
votes
0answers
27 views

How to SSH second user to Linux server (CentOS)

I connect to my DigitalOcean droplet (linux CentOS server) through SSH with root user. It's workin fine without any problem. But when I try to connect to my server through second non root user it ...
0
votes
0answers
21 views

Troubleshooting an SSH connection to a home network computer

I have set a Raspberry Pi on a home network with a Mercusys MW325R wireless router. The connection is via WiFi. On the router I have set a "virtual server" (which I imagine is the same as port ...
1
vote
0answers
919 views

Use VPS as a proxy, VPS being tunneled to a server with dynamic IP

I'm trying to connect to a VPS as if this one was a proxy server Edit Proxy being an HTTP proxy not a SOCKS one, so that any app needing an HTTP proxy can connect to this HTTP proxy with this type of ...
2
votes
1answer
21 views

Unclear about SSH (agent) Forwarding - Do I need to copy the public key into authorized_keys on every potential target?

I am trying to implement/test SSH Forwarding, but the only way, so far, that I can make it work is if I manually copy the public key (ssh-rsa xxxx) to each of the machines I want to SSH to. Suppose I ...
0
votes
1answer
5 views

Always forward client identity

I use JuiceSSH on my mobile and have quite a long ssh config file on my PC. On my PC if I ssh in to a bastion server, I cannot SSH to any subsequent servers. Using my mobile I can. This indicates to ...
0
votes
1answer
15 views

SSH login hangs in MacOS Sierra but not in Linux environment

The command below hangs when I attempt to connect to SSH server from Mac OS client. However, it works perfectly fine in Linux env. $ ssh -vvv master@172.18.0.2 -p 22 OpenSSH_7.4p1, LibreSSL 2.5.0 ...
0
votes
0answers
52 views

ssh working, but not scp and sftp, on bionic

I upgraded from Xenial to Bionic, and now scp and sftp do not work any more. ssh works. When I try to transfer files from another machine to the Bionic machine, I get the message: lost connection I ...
0
votes
0answers
21 views

issue with local dns

I do not inderstand the probleme. I'm trying to add to my file /etc/hosts a new domain name 172.16.20.150 newsletter.com this ip is an ip of a remote server which I installed a WAF to filter ...
1
vote
1answer
42 views

Running headless server on Windows via SSH

I'm currently working on a software project that allows remote installation via SSH. I transfer a small installer, and then a zipped archive of the main application. The installer will unzip the ...
0
votes
1answer
23 views

SCP off the most recently modified file in a remote directory

Is there a simple command to SCP the most recently modified file in a directory on a remote host? I can figure out how to do that from local to remote... something like: scp ``ls -Art | tail -n 1\`` ...
0
votes
0answers
18 views

is it possible to use multiple socks proxies to increase connection speed?

I use a local socks5 proxy in my chrome browser. I setup the local proxy like this: ssh -D 1080 myuser@my-cloud-server I found that the connection speed is not ideal. So I'm wondering if it's ...
0
votes
1answer
39 views

Reoccurring ssh_exchange_identification: Connection closed by remote host error MacOS (Only fixed by resetting ssh each time)

I am spinning up multiple remote instances via Google Cloud and scp-ing scripts to these instances to run them and get the results scp-ed back to my local computer. Things start smoothly but after a ...
0
votes
0answers
14 views

What's the difference between `ssh -lroot host` and `ssh root@host`?

I'm used to doing ssh -lroot hostname when ssh-ing into a server. Others use ssh root@hostname. What's the difference?
0
votes
0answers
12 views

rsync seems to ignore chmod

I'm trying to rsync files and folders to a remote location through ssh. On the remote location (/home/public_html/my_project/) I have the setgid set in order to have new files and new folders created ...
2
votes
1answer
18 views

Generation of SSHFP Records in FreeIPA

MY SETUP I have a cluster of machines running Centos 7.3, and I am using Kerberos / LDAP for authentication. Kerberos / LDAP are as packaged in FreeIPA 4.4.0. All hosts have an address on 192.168.1....
1
vote
2answers
48 views

How do I make my backspace key functional in a bash script for Linux being accessed remotely from Windows?

I have a bash script on CentOS 7.4 with the following line that lets a user input a variable and then lets them confirm that what they entered is indeed correct: read -p "Enter the name of the ...
0
votes
0answers
20 views

Unable to ssh due to authentication issue

I am unable to ssh to my api server now due to authentication issue. It used to login without asking a password earlier. I tried ssh-copy-id to copy the public key to the server before doing ssh but ...
0
votes
2answers
73 views

IPtables issues - Assistance appreciated

I am trying to make a firewall for my raspberry pi. The rules that I want are Allow incoming SSH - this works Allow outgoing ssh - this does NOT work and is my main issue Allow incoming and outgoing ...
0
votes
0answers
36 views

Can't SSH to Linux box behind router from Internet

I have a Linux box (Ubuntu 16.04.4 LTS) on my home network that I cannot SSH to from the Internet, through my router. I just get a timeout. I have port-forwarding set up on my router I can SSH to the ...
0
votes
0answers
20 views

Open port for reverse ssh tunnel

I have opened a reverse SSH tunnel from machine A (Windows) sitting behind a NAT to machine B (Ubuntu) on port 4000. I can access my service running on machine A from machine B at the address ...
0
votes
0answers
20 views

MobaXTerm - cutting off lines on output larger than window sice - how to change this?

I am using mobaXTerm as my SSH/Mosh Client ... so far a handy tool. However on MOSH connections, when outputs longer than the screen size arrive, only the most recent lines are shown. If the amount of ...
0
votes
1answer
23 views

Losing Kerberos Ticket after SSH to Current Host and Exit

I am running on CentOS 7.3. How may I prevent losing my Kerberos TGT in the scenario below? I understand the security implications of not destroying Kerberos tickets upon logout, and I will be ...
0
votes
0answers
20 views

Lowest latency VNC connection with available tools

Good day, I have to SSH into systems at my work and cannot seem to find the best setup to get my productivity to the level I want. Currently I have the options to use Putty, VNC Viewer, or Bash for ...
0
votes
1answer
18 views

Is it possible to restore SSH key?

I have reinstalled OS, but didn't backup SSH keys, only bitbucket has the exported key for now: ssh-rsa AAAAB3NzaC1yc.... mymail@gmail.com Is it possible to restore my key using this exported one?
5
votes
4answers
169 views

PuTTY crashes on exit and requires computer reboot

PuTTY crashes when the program tries to exit. When it crashes, the window will freeze and will not close no matter what. Force close will not work, the task manager will not work. pskill from pstools (...
0
votes
0answers
25 views

Can you disable logging in as other users over ssh? [duplicate]

I have a Macintosh server computer with 3 users: admin, git, and server. Admin is the only administrator on the computer, while git and server are normal users. I can log in to all 3 over ssh, using ...
0
votes
1answer
52 views

sshd “listen on all interfaces” behaviour, OSX and Ubuntu

Given an extra loopback interface in the 127.0.0.X (X>1) range on BoxA (which can be running either OSX or Linux), I want to bind port 22 of this extra loopback interface to a forward SSH tunnel (ie. ...