SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

2
votes
1answer
36 views

Connection to host closed by remote host. Exit status -1 [duplicate]

i run an virtual ubuntu server with i have normally no trouble connecting to. However in the last 4 days i got twice connection closed by remote host. I have multiple accounts but with each i got the ...
1
vote
1answer
25 views

Why does ssh-copy-id need verbose LogLevel to work in this case?

I'm trying to set up public key authentication on a CentOS 7.3 guest, using WSL. When trying to copy the public key using ssh-copy-id, it's rejected, saying it already exists on the VM. This is not ...
0
votes
1answer
26 views

SSH to a server from inside a VM

I am on a CentOS guest OS on a VirtualBox. I need to connect to this server through SSH using its public IP. More importantly, I need to connect to this server from within the guest host. I have ...
4
votes
1answer
43 views

How to automatically change terminal background, based on ssh hostname?

How can one progmatically change the background colour of a terminal window, based on the hostname you ssh into? i.e When I am ssh'd into live embedded systems on production hardware, I wish the ...
0
votes
0answers
33 views

Bypass “in-built” program

When I access a certain server, immediately some sort of software runs inside the command line and I'm unable to quit and access the command line. Through FileZilla I can navigate through the folders ...
0
votes
0answers
21 views

Server refused our key after upgrade [on hold]

I ran apt-get update and apt-get upgrade. After that I could no longer access root from ssh. I can access other accounts but not root. I double checked my key is still in authorized_keys and I ...
-1
votes
0answers
22 views

scp — how to determine whether a file is still being downloaded or has finished? [on hold]

Say I have a large file on a remote machine which I'm copying to local one via "scp". How can I determine whether a file is still being downloaded or has finished already?
0
votes
1answer
16 views

Random “connection refused” using SCP commands in a script

I'm using SCP to backup files from my VPS in the cloud to my PC. In an early version of the backup script there is one single SCP command to backup everything from the server root. This works ...
-1
votes
0answers
46 views

Unable to read a file of 10 Kb via “cat” in FreeBsd

On a freebsd 11 system I'm trying to read a file of around 10 Kb long via "cat" while on ssh connection. cat some_file.txt However, I lose the connection when I open it and only around a half of it ...
1
vote
1answer
7 views

sshuttle connection timing out

I have a local server that only allows connections within the internal network. I have another server inside the internal network that can connect to outside the network. I want to use the second ...
1
vote
0answers
41 views

Server refusing public key with PuTTY

I am configuring our new RHEL 7 server and I am have a real pickle in trying to get it to accept my private/public keypair. Everything seems similar enough compared to the sshd config from the older ...
1
vote
1answer
18 views

SSH and SCP piggyback ubuntu machine for a new user

I want to use an existing Ubuntu machine (with a public IP) to allow a user to SSH into it and then use it to SSH/RemoteDesktop/FTP into another linux machine (with a private IP but within the 1st ...
2
votes
3answers
58 views

How can I get system information from the command line?

Sometimes when I log on to a system via SSH (for example to the production server), I have such privileges that there can install some software, but to do that I need to know the system with which I ...
1
vote
1answer
55 views

Running code without ssh in beaglebone black

I want to run some code in Beaglebone black without doing ssh when I apply power. I have tried putting some commands to run the code in ~/.bashrc file but it only works when I login using ssh. I have ...
0
votes
0answers
19 views

Linux User Groups having its Home folder inside a 1TB HardDisk

I've been using Linux and Unix OS for 5 years but I have never had this kind of problem: I have a 1TB Disk connected to Raspberry Pi (with Raspbian OS) and the Raspberry has an user what is "Pi". I ...
-3
votes
0answers
19 views

any Windows specific challenges for SSH in relation to the Windows Subsystem? [closed]

are there any particular issues specific to the Windows Subsystem with regards to SSH? This would be primarily for logging into the Windows Subsystem itself from Linux.
0
votes
0answers
8 views

MobaXterm not connect via jumpbox but does directly [closed]

I got a situation when I can connect with Mobaxterm to gateway server directly, but I cannot use this server as a jumpbox (gateway host) option. I got 'Server unexpectedly closed network connection', ...
1
vote
0answers
17 views

Extract contents of jar file to curl using scp

I have a jar file containing a javadoc tree on one box. I need to transfer it to another box and unpack the jar in a specific directory (which may not exist). I have the username/password of the ...
1
vote
0answers
24 views

git ssh alias not working unless I add the key to ssh-agent (OSX)

I added a ssh alias to use a different key-pair for a certain domain. The key does not have a passphrase. I had followed the directions at https://confluence.atlassian.com/bitbucket/configure-...
0
votes
1answer
24 views

Is there a way that I could execute files remotely with files containing include?

I am trying to execute ssh command to execute files remotely. ssh root@abc 'bash -s ' < filename.sh But it won't work because filename.sh has a ./source command that references another file. ...
1
vote
1answer
21 views

Cipher compatibility between ssh client OpenSSH_3.1 and ssh server OpenSSH_7.3p1

I have to change my old ssh server. The old sshd was OpenSSH_4.7p1 while the new one is OpenSSH_7.3p1. I also have many old clients based on Slackware 8.1 (2002) with a very old ssh client OpenSSH_3....
0
votes
0answers
21 views

How to run script periodically through watch on remote host? [duplicate]

I would like to run a background script periodically on a remote host via ssh. I create a script that run another script in background on the remote host like that: nohup watch -n5 ./script.sh &...
0
votes
2answers
54 views

Block every incoming traffic except port 22

Is it a good idea to block every incoming and/or outgoing traffic on my debian 7 vps except for port 22 and/or localhost via iptables? The server doesnt run any applications which are available from ...
-1
votes
2answers
26 views

CentOS7 SSH can't connect localhost?

I'm configuring Hadoop environment. I have use $ ssh-keygen -t rsa -P "" to generate id_rsa.pub and id_rsa. And use cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys to set password-free login. ...
-1
votes
0answers
16 views

It is possible to assemble a portal captive in a ssh tunnel [closed]

Am thinking in create a tunnel ssh in a server ubuntu, clear that is possible but my idea is Mount within the same a portal captive so capture the traffico and it redirect to a page so is autentifiqu, ...
0
votes
1answer
51 views

ssh to localhost not working, remote ssh works

I have strange issue going on - I have 2 VM's as node01 and node02 running on a Windows host ssh from node01 to node02 works ssh from Host to node01 and node02 works ssh from node02 to node01 works ...
-2
votes
0answers
35 views

How to write a fake text instead of what is written on the terminal? [closed]

I want a fake command to be displayed instead of the command that I write. Each key typed (of the real command) should add a letter from the fake command. if the real command is bigger than the fake ...
2
votes
1answer
33 views

Why ssh immediately disconnects when using -F /dev/stdin syntax?

I've configured and booted default Ubuntu VM box by the following commands: vagrant init ubuntu/trusty64; vagrant up --provider virtualbox Now, for education purposes, I'd like to use the following ...
-1
votes
1answer
41 views

How do you close all ssh-add keys?

Everytime I ssh into a server, I need to add the same ssh-key over and over again. So I have a script that does it for me, which worked fine for awhile. However now the server is complaining: - You ...
0
votes
1answer
25 views

Linux server mount uknown filesystem type

i broke ssh on my server, and i am running recovery, and I need to mount my largest hard disk, to do so I am executing this command: root@grml ~ # mount /dev/sdb3 /mnt But i am getting this error ...
6
votes
1answer
65 views

How can I pipe something to less over ssh?

I am trying to configure a mutt binding to pipe an email into an ssh invocation to process the mail on a remote machine with a script that displays some output using less. However, this does not work, ...
0
votes
1answer
33 views

Screen session fails when detaching

I have successfully used the screen utility to run my time consuming scripts when I am working on a server via ssh. However lately I have been running into a problem, I have found my script terminated ...
0
votes
1answer
21 views

not allowed to push to git repo after server dist-upgrade and backup restore [closed]

I made a distro upgrade from Ubuntu Server 14.04 to 16.04. I have copied all the user and group files: /etc/passwd /etc/passwd- /etc/group /etc/group- /etc/gshadow /etc/gshadow- I made a diff on all ...
0
votes
1answer
24 views

Automatically copy a certain folder from each of remote machine to a main machine

I have one main machine and a group of remote ones. I want to keep a track of a certain folder on each of the remote machines and copy its content to a certain folder in my main machine. The remote ...
1
vote
1answer
48 views

SSH over VPN over WiFi Hotspot not working

I have a Netscreen vpnc VPN tunnel set up which I connect from different Linux boxes (Ubuntu, Lubuntu, Antergos), and all of them show the same behaviour. When I use a USB modem attached to the ...
0
votes
0answers
32 views

How to configure rc.local with shell?

I need to set a reverse ssh connection for an Ubuntu server 16.04. I searched different ways to write in a file with a variable but I didn't find one for my case :( the command to be executed: ...
1
vote
1answer
31 views

Sudo-like utility for ssh, or at least git in particular?

I'd like to keep my keys secure, but also not have to enter a passphrase on every single git invocation, when I want to run several commands in quick succession. I've researched this, and found that ...
0
votes
2answers
29 views

Environment variables over ssh block in shell script

I have the following function : GetHostName () { NODE01_CHECK=`cat /etc/hosts | grep -w "node01" | awk '{print $1}'` NODE02_CHECK=`cat /etc/hosts | grep -w "node02" | awk '{print $1}'` IS_NODE1=`...
1
vote
1answer
82 views

ssh_dispatch_run_fatal: message authentication code incorrect

Since a few days I'm facing an issue while being connected to my server in ssh, for proxy/tunel usage. I - Setup Client Here is the machine : iMac:~ Luca$ sw_vers ProductName: Mac OS X ...
0
votes
1answer
25 views

Alias not working with for loop

I tried to copy the zip file from localhost to two remote machines, I aliased my remote hostnames. Hence I use the for loop like this for g in hy1 hy2;do scp kube.tar.gz $g:~;done hy1,hy2- alias ...
0
votes
1answer
23 views

expect script to autofill password [duplicate]

Im struggling with how to do things. My goal is that when in on my jumphost type ssh router1, then it will ssh to the router, and at the same time run an expect script to fill in my password from a ...
2
votes
1answer
31 views

SSH Tunnel in background

I have a process that expects an ssh tunnel connection to execute correctly and I have been using the following command: ssh -L localhost:3306:127.0.0.1:3306 username@<mysql-machine-ip-address> ...
0
votes
1answer
38 views

How to encrypt a string with my SSH pubkey?

If I only have an SSH pubkey, how can I encrypt an ex.: IP address (so a short string), only using the ssh pubkey? For decryption, the other party would have the pair of the pubkey, so the private ...
-3
votes
1answer
35 views

Connecting from local computer to server - ssh [closed]

This is procedure that I use: $ cd .ssh bash: cd: .ssh: No such file or directory $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): ...
0
votes
0answers
4 views

tracing the ssh tunnel activity using java processbuilder api [migrated]

I have a java client to execute shell commands using a processbuilder api. Is there a way to get the ssh packet trace or the ssh activity using the processbuilder? The below code takes a shell ...
70
votes
3answers
10k views

Server admin sent me a private key to use. Why?

I'm kind of new to ssh so forgive me if this is a stupid question. I'm supposed to be accessing a server in order to link a company's staging and live servers into our deployment loop. An admin over ...
1
vote
1answer
40 views

Error trying to restart ssh

rookie linux user here. I am using Linux Mint 18, the same distribution I have been using most of the semester for school. I was tasked with making certain adjustments to the sshd_config file, ...
3
votes
1answer
35 views

Disallow to download a file via SFTP

Users are only allowed via SFTP and only with pubkey. There is 1 UNIX user on the system and many ssh pubkeys in the authorized_keys file. Q: How can I prevent the users to download the ~/.ssh/...
0
votes
2answers
34 views

Pass password to a script running over ssh

This is not a duplicate of this question. I log into a remote server using ssh with a key pair (no password needed). On the remote server, there's a script of mine needing a password for something ...
0
votes
1answer
33 views

Transient drops of SSH connections through AT&T

Recently, my home ISP service changed to AT&T Uverse. While it's much faster than the old copper-wire DSL (!) I had before, there are transient drops of ssh connections. I can't determine a ...