Questions tagged [ssh]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
133 views

Where do I override EDITOR to gvim when in X?

When I connect to a machine remotely using ssh, without -X, I'd like for less's v and hg commit to open vim. I know I can do this with export EDITOR=vim. However, if I login locally, or via ssh with ...
Chad Skeeters's user avatar
1 vote
4 answers
4k views

Communication between Docker containers on differents hosts in the same local network

I have two Docker containers running on two different hosts: Computer A (PC, uses Ethernet), ip 192.168.0.11 [ Docker container running inside on 172.17.0.2 ], OS Windows 7 Computer B (laptop, uses ...
concrete_rose's user avatar
0 votes
2 answers
176 views

Move folders from Windows 7 to Linux NAS via SSH

I have many files I want to copy to my NAS device, however, the NAS OS doesn't allow for easy upload of an entire folder. The NAS device I am using is a Thecus N5810pro running the standard Thecus OS ...
Daz's user avatar
  • 5
2 votes
1 answer
6k views

What is the best way to backup an SSH key in case my hard drive fails, etc?

I have disabled root user login for my CentOS server running cPanel. This is frustrating, as I then cannot login via SFTP and get to my root files on my server to check error logs (which I frequently ...
SidedTech's user avatar
  • 190
0 votes
0 answers
663 views

Linux / PuTTY / SSH | Access denied from an external user

I've been recently trying to make a collab website with a friend of mine, but when he tries to connect using any SSH client, he always gets an "Access denied" from it. But, I always get a successful ...
user avatar
0 votes
0 answers
490 views

FileZilla SFTP connection need to change user account

I'm trying to connect to a SFTP server using FileZilla on Mac, on my personal default account, I'm keep getting this authentication failed error, even though all my details are correct. But when I ...
zenoh's user avatar
  • 101
2 votes
2 answers
1k views

OpenSSH Client Options, specify min and max modulus?

In this answer to "What's the modp length of diffie-hellman-group-exchange-sha256?" it states: The actual selection process is, in OpenSSH source code, in the choose_dh() function in the dh.c ...
P.S.'s user avatar
  • 257
27 votes
2 answers
18k views

SSH Agent forwarding using different usernames and different keys

There is a very similar question that if answered may have been the answer to this question. Unfortunately it's a case of "no need to answer the question I asked because the problem wasn't what I ...
Bruno Bronosky's user avatar
0 votes
1 answer
199 views

ssh-agent never forgets private keys

When using ssh with an encrypted private key for authentication, I never have to enter the passphrase (except probably once, can't remember). I noticed I'm running ssh-agent - which I don't remember ...
Bart van Heukelom's user avatar
2 votes
2 answers
5k views

SSH through a proxy?

I am trying to connect to a SSH server through a proxy on CentOS 7. I found some solutions with ProxyCommand and connect-proxy but this one is not available for CentOS 7. I found another way with nc (...
None's user avatar
  • 217
1 vote
2 answers
13k views

PuTTY Network Timeout Error

I'm using PuTTY on my Windows machine to use SSH on my university server. I run analyses that take up to 3 days to complete. I can connect and start the analyses but eventually get an error message '...
Magpie101's user avatar
0 votes
0 answers
63 views

Tunnel SSH over redirection server

If I am on the university network I can SSH into the machines with ssh username@machine_name. However when I am off the university network I have to ssh [email protected]. When I SSH to the ...
agz's user avatar
  • 8,278
2 votes
0 answers
1k views

Bypass Firewall blocking ports other than 80 and 443

Institute firewall blocking ports other than 80 and 443. I want to connect to amazon ec2 and the digital ocean droplet through ssh How to use ssh?Please provide the explanation in layman terms?
sunny's user avatar
  • 121
11 votes
3 answers
45k views

Why does ssh frequently disconnect with 'connection reset by peer'?

Why do I get 'connection reset by peer' SSH disconnections more frequently from my home internet versus the office internet? I've been researching this issue on and off for years now and the other ...
Shovas's user avatar
  • 332
1 vote
0 answers
156 views

How does SFTP transfer files when SCP cannot? [duplicate]

While at work, I am restricted from using scp to copy files from a remote server to my machine and when I try, the operation always times out. However, when using an FTP client that supportssftp, the ...
nipponese's user avatar
  • 1,114
0 votes
1 answer
440 views

How to connect to internet through raspberry pi?

Here i have connected my raspberry pi to my laptop using the ethernet cable. Inside the raspberry pi boot SD card i have opened the file cmdline and added the following information at the end of the ...
Backdoor Cipher's user avatar
0 votes
1 answer
70 views

Cross host communication - one of them behind a firewall

This is the scenario. My machine Host 1 Host 2 All three are Ubuntu machines. My machine and Host 1 both have public facing IPs. Host 2 has a NAT IP and is accessible only from Host 1 through the ...
deepakkt's user avatar
0 votes
1 answer
27 views

Using CA inside the host

I have gone through this article. I have a question if I can have my CA instance on my host server itself. This is because I have only one server and 5 clients accessing it. I want the certificate ...
Nikhil's user avatar
  • 1
1 vote
1 answer
1k views

How to wipe and reinstall Centos remotely?

Long story short, I removed the default python version Centos 6.8 comes with, and now Yum is broken. At this point, it seems best to completely try again. In light of this, how can I wipe the ...
Everyone_Else's user avatar
0 votes
1 answer
1k views

Removing all .DS_store files via sudo command in Synology SSH

When running the following command: find / -name .DS_Store -delete it will find all the files but fails to delete as it doesn't have the correct permissions to do so. however when running: Sudo ...
Anayatc's user avatar
3 votes
1 answer
5k views

Make a wireless hotspot in Linux and then ssh to it when connected

I want my raspberry device to make its own hotspot when it boots up (Internet not needed), and then ssh to it. So the two questions I'm actually asking is... How do I create a hotspot in Linux? Once ...
Don't Root here plz...'s user avatar
47 votes
3 answers
15k views

SSH makes all typed passwords visible when command is provided as an argument to the SSH command

If I run this: ssh user@server 'mysql -u user -p' When it asks me for the MySQL password, and I start typing, the password is visible on screen. How can I prevent this? If I log in through ssh and ...
user110971's user avatar
2 votes
3 answers
3k views

ssh does not work when called from systemd

I am trying to write a script to rsync a folder on my laptop to my NAS. The script runs fine when called from the commandline. I've tried setting up the script to run automatically with systemd. ...
Thomas's user avatar
  • 351
0 votes
1 answer
529 views

Connect to an on premise server via Proxy and SSH tunel

I am trying to access a web application that is currently hosted behind the company firewall from my home laptop. I found plenty of questions and responses on how to create SSH tunnels, SSH proxy or ...
alfallouji's user avatar
0 votes
1 answer
3k views

How to generate ssh keys (ecdsa) on Win10 for native ssh into Win10

All, I'm quite adept at key generation and public/private key authentication on Linux, but am basically a fish out of water on windows. I have Win10 with Ubuntu bash installed and I've had no problem ...
David C. Rankin's user avatar
1 vote
1 answer
2k views

How to connect a linux pc (Ubuntu) to a Mac OSX that run only in single user mode terminal

First time posting here, so be kind with me. This is a problem I'm facing. A Mac on OSX (10.7.x) is dead on graphic card,so is bootable only in single mode from terminal. I want to get data from disk, ...
user3244633's user avatar
-2 votes
1 answer
4k views

My Raspberry Pi VPN just got hacked. What should I do about [closed]

I set up my raspberry pi 2 as a VPN and port forwarded 22 also so I could access it elsewhere. I left the root password as toor but didn't really expect to be targeted. When I logged into my RPI2 ...
user3573987's user avatar
0 votes
1 answer
129 views

Automate the creation of letsencrypt certs

Currently I do my letsencrypt cert creation manually every 3 month. I have a webspace and use my server, to create the certs. Then I download the certs and add the manually. Since I can't automate the ...
Zoker's user avatar
  • 123
0 votes
1 answer
3k views

iptables forward traffic between two interfaces

My setup is made of (on the same host): a Network Interface Card (NIC) eth0 with static IP 192.168.1.10 a label to the NIC eth0:0 with static IP 192.168.1.11 a virtual guest machine (using KVM) at ...
jib's user avatar
  • 1
0 votes
1 answer
754 views

Why does WinSCP prompt for credentials while no FTP servers are active?

I have a Windows 10 system running Cerberus FTP Server & CrushFTP. I am actually new to these Two Programs & learning about them for setting up a FTP server at an organisation. I am currently ...
CrazyFirewall's user avatar
1 vote
0 answers
542 views

Setting up Panda Wireless Wi-Fi on Raspberry PI before plugging it in

I have a RPI zero and I've managed to get it to do SSH over USB with my computer. I'd like to have it connect to the Internet, though, so I'd like to use my "PAU05" Panda wireless Wi-Fi dongle. The ...
user3475234's user avatar
5 votes
1 answer
8k views

packet_write_wait: Broken Pipe error on MacOS Sierra SSH

I keep getting a packet_write_wait: Broken Pipe error on my EC2 SSH connections after a period of inactivity. I've tried modifying the ServerAliveInterval & ClientAliveInterval settings with ...
user avatar
1 vote
1 answer
6k views

How to find out the IP of a known host in SSH

After connecting with an ssh host for the first time, you're prompted to add the host to the trusted known_hosts file, and are given the IP. Warning: Permanently added the RSA host key for IP ...
Jeff Puckett's user avatar
0 votes
1 answer
100 views

SSH access to Linux box behind Microsoft Remote Desktop

Situation currently: To access a remote Linux VPS we need to load up a VPN connection, login to Microsoft Remote Desktop and then connect to the VPS using SSH inside the remote desktop environment. [...
ojrask's user avatar
  • 131
95 votes
17 answers
260k views

SSH-Key authentication fails

I'm trying to ssh into a CentOS server which I have no control over.. the admin has added my public key to the server and insists the fault lies with me but I can't figure out what is wrong. Config ...
Tim's user avatar
  • 951
0 votes
1 answer
119 views

What is the effects of adding "Listen 443" to "sshd_config"

I was following this tutorial tutorial where i added this line Listen 443 to sshd_config without changing anything else, now i can no longer connect to the default 22 port
InsaneBot's user avatar
  • 131
4 votes
2 answers
4k views

Is it possible to set a time limit on an active ssh connection for a specific linux user?

I am currently working on an idea for a fun CTF challenge. One of the major hurdles of this challenge however is allowing a user a specific amount of time on an ssh connection. Essentially the user ...
fataldarkness's user avatar
4 votes
2 answers
34k views

SSH fails with 'Received disconnect' only for select users

I have the following issue: when trying to ssh to a remote server using a specific user, the response from the server is Received disconnect from ***: 11: Disconnected from *** if I try ...
AlexP's user avatar
  • 41
0 votes
1 answer
841 views

Execute rdesktop via ssh on a remote machine

I have 4 different raspberry devices that I have connect to 4 different monitors. The previous tech guy in my company had install and enabled vnc server to all of them, so he could remote desktop to ...
raism's user avatar
  • 61
5 votes
1 answer
6k views

ssh-agent service stop starting at login on Mac OS 10.11

I'm currently facing a little issue about the ssh-agent service. I rebooted my computer today after removing a Boot Camp partition. Since then, ssh-agent no longer starts automatically at login. I ...
shulard's user avatar
  • 153
1 vote
1 answer
46 views

ssh configuration for easier connection to a server

I want to set up my ssh config to ssh into a server with one command. Currently I have to execute these 3 lines on my terminal to ssh into my build server. $ ssh-add $ ssh -A -t ftp1.foo.net $ ssh -...
raitisd's user avatar
  • 113
1 vote
1 answer
3k views

SSH using Active Directory credentials

I am using AWS, I can ssh using .pem file, I have also enabled password login by modifying /etc/sshd/sshd_config. I can create a new user and login with that user using password. However, instead of ...
user2576598's user avatar
0 votes
2 answers
1k views

Cron jobs on Ubuntu stops mysteriously some time after my SSH session is closed

I have some cron jobs that are making sure the VPN is being established. Everything works fine and I've been checking this from time to time. However, in the morning I noticed that the VPN is down and ...
Sasho Andrijeski's user avatar
2 votes
1 answer
4k views

WinSCP to create an SSH tunnel to connect to a remote MySQL server

I am using PuTTY to connect to remote MySQL server via SSH tunnel. I will be specifying the source port and destination port and I will be using source port on MySQL Workbench to connect to remote ...
Muthu's user avatar
  • 123
11 votes
3 answers
45k views

How to ssh from one ec2 instance to another?

I have created two EC2 instances on AWS. I created a key pair for each of them. I downloaded the .pem private keys and converted them into .ppk format. I can connect to each of my ec2 instances using ...
Stephen Walsh's user avatar
0 votes
1 answer
121 views

Encrypting a server's home directory vs. availability [duplicate]

Disclaimer: I'm a newbie with server administration. Should I encrypt the home directory for a Ubuntu server? Encrypting the home directory means also encrypting the .ssh folder and therefore being ...
user3834459's user avatar
0 votes
2 answers
1k views

Nmaping 127.0.0.1 vs. 192.168.1.107

I was tinkering around with my computer and then I realized I forgot to install ssh, so I did install it and wanted to make sure that port 22 is open. So I nmaped my local IP 192.168.1.107. And then I ...
The_Babu's user avatar
  • 113
4 votes
1 answer
1k views

How to get an ssh socks proxy on demand?

I know ssh provides a SOCKS proxy with -D. I wonder if it's possible to start such a proxy on demand, the moment a connection is made to a specified port (using the likes of socat and nc under the ...
Matei David's user avatar
5 votes
1 answer
2k views

SSH remote command with !(pattern-list)

I'm trying to delete all files and directories under /path/to/dir/ except for two directories (dir1 and dir2) from a remote host using SSH. When I run a command similar to this on my local Ubuntu 14....
Steve's user avatar
  • 53
2 votes
3 answers
9k views

Centos 7 in virtualbox - SSH: connection refused

I've been playing around with a Centos 7 server in VirtualBox, and I have a problem. For whatever reason I can't connect to the server on my Windows using Putty or cmder or whatever else. I can ping ...
Albert.tomasiak's user avatar

1
96 97
98
99 100
213