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

learn more… | top users | synonyms

3
votes
2answers
73 views

Can I concatenate a bash alias?

Sample : to use Composer locally, I must write : php composer.phar After some locals installation of Composer, I want to alias it only "composer" but keeping absolute path with "pwd" command. I ...
0
votes
0answers
18 views

Getting utf-8 support in screen via ssh

If I ssh from iTerm2 on my macbook to my vps and then run the command screen -r irc, which is running weechat, utf-8 works properly. :) However, I’ve set up an alias for this on my mac: $ alias | ...
4
votes
2answers
87 views

Debian Lenny Server Compromised - No Sign Of Intrusion Point?

I have a server, it's outdated running Debian Lenny, and yes I know that is probably half the problem. It also has PHPMyAdmin and ProFTPd. Again, I get it, all bad signs. But for the life of me, I ...
1
vote
0answers
24 views

SSH/web servers in Linux containers improve security?

Scenario: A 'gateway' machine functioning as a router and firewall, connecting a small LAN to the internet. The machine also runs a webserver (hosting a simple website) and an SSH server, providing ...
2
votes
1answer
39 views

SSH: display warning when using (deprecated) ssh-dss key

With the 7.0 release, OpenSSH disabled ssh-dss keys. The not-so-recommended workaround is to explicitly re-add DSA key support to .ssh/config, which will eventually be dropped by a later OpenSSH ...
2
votes
0answers
32 views

MOTD not displayed after installing openssh from source

On Debian Wheezy the default openssh server package displays the motd from /etc/motd. When i compile it from source (openssh-6.0p1) it won't display the motd anymore after an ssh login. Configure ...
0
votes
0answers
13 views

How do I get a manifest to run from my Puppet Master server to a Puppet Agent node?

I am trying to run a Puppet manifest for the first time on two new servers. But I keep getting errors. I recently set up two CentOS v7 servers. They have passwordless SSH between them. Ports 22, ...
0
votes
1answer
33 views

SSH server accepts key ONLY if user is logged in (on server) [duplicate]

I can connect to my server using (id_rsa) key WHEN the local account on the server is logged in. If I reboot server and leave it at the login manager,and then attempt to connect, SSH returns ...
1
vote
0answers
18 views

Can I change owner of a tunnel after creating it?

I've been trying to finagle pytun to do my bidding in creating persistent ssh tunnels, but I very much do not want these to be owned by root and unless I modify the python package myself (which as a ...
0
votes
0answers
31 views

Is it possible to ssh and execute a remote command with a single quote in it? [duplicate]

ssh user@host "mv \"/some/path/fi\'le.txt\" /some/new/path" It doesn't matter what I do, or what combination of quotes I use on the file, it gives the following: bash: -c: line 0: unexpected EOF ...
0
votes
1answer
59 views

SSH Key Permissions Chmod settings?

I need to use SSH on my machine to access my website and its databases (setting up a symbolic link- but I digress). Following problem: I enter the command: ssh-keygen -t dsa To generate ...
0
votes
0answers
13 views

SSH Permissions in Linux Mint [duplicate]

I need to use SSH on my machine to access my website and its databases (setting up a symbolic link- but I digress). Following problem: I enter the command ssh-keygen -t dsa To generate ...
1
vote
3answers
114 views

How to force ssh connection to exit at end of script

I have a script which is composed of two parts. part1 creates an ssh connection, part2 runs a script (about 800 lines and counting so far). part1: ssh $target_server "bash -s" < $target_script ...
1
vote
2answers
40 views

Pass Array to SSH Connection

How can I pass an array across the ssh connection. I have an array formed thus: declare -a target_array=( "item1 -p12345 -r" "item2 -p65677 -e" ) I then need to pass it to an ssh ...
0
votes
0answers
30 views

Connect to a pc which is in external network using ssh [duplicate]

I want to connect a PC which is in an local network with IP 10.1.10.25 while the IP address of router is 68.10.25.24 This PC is far away from me. How can I connect to that PC from my terminal using ...
0
votes
1answer
53 views

How to create a ssh for more than one linux server?

updated* I have two Linux servers CentOS 7 & Debian 6 running a vulnerable web app inside virtual Box, my host OS is Kali Linux & connected to both VM'S with Host -only -adapter settings. i ...
2
votes
0answers
36 views

Problem with ssh connection [closed]

I need to connect to my computer via ssh. I have to use VPN, because the remote machine is my computer at my workplace. I have no problems with using VPN. So, I installed open ssh server from the ...
2
votes
1answer
43 views

Validate start-dfs.sh

I am trying to setup a Hadoop cluster, where master is my laptop and slave is the virtualbox, following this guide. So, I did, from master: gsamaras@gsamaras:/home/hadoopuser/hadoop/sbin$ sudo ...
1
vote
2answers
63 views

host can't ssh guest, but guest can

This is a follow-up question from: Make virtualbox get a different IP address than my laptop. I ended up with these /etc/hosts files on both my laptop running Ubuntu 14.04 (the host) and my virtualbox ...
1
vote
1answer
35 views

ssh algorithm negotiation failed

Problem Ok, the problem is that I am using Pycharm on El Capitan. I am trying to connect to a server that has strict login Kexalgorithms using the newer Key Exchange Algorithms than Pycharm seems to ...
2
votes
1answer
28 views

Gentoo Linux GPG encrypts properly a file passed through parameter but throws “Inappropriate ioctl for device” when reading from standard input

I am running Gentoo Hardened with kernel 4.1.7-hardened-r1 and I am trying to encrypt a file using GPG from a shell session opened from SSH and with the DISPLAY variable disabled in order to use ...
2
votes
1answer
66 views

SSH/SCP Connection problem | Lost connection

We are unable to ssh or scp to a particular host, SSH Connection hangs for a while and then gets disconnected and we get this error "Lost connection" All the hosts are CentOS 6.7 Openssh version ...
0
votes
1answer
41 views

Unable to establish an SSH tunnel using Redis Desktop Manager

I am trying to connect to an Elasticache Redis Server via an AWS Ubuntu instance and using an ssh tunnel. When I try to configure Redis Desktop Manager to connect via an ssh tunnel and provide ...
2
votes
1answer
37 views

cannot connect with ssh to linux after shutdown command

i've used command shutdown -h 12:55 (for example), and linux server shutdowned at this time, but when I'm trying to connect with ssh I receive the message: "The system is going down on Thu Dec 31 ...
0
votes
1answer
30 views

Protecting account ssh keys from root

How can users ssh private keys be protected from root stealing and attempting to brute force them? I cannot use selinux as the vendor will not support the app when it's in use? Thanks
0
votes
2answers
65 views

Script for ssh automatic login to a specific port

So currently, the "traditional" way to connect through SSH is the following one: ssh USERNAME@HOST -p PORT I would like to create a script in which I will include all the appropriate information ...
-1
votes
2answers
37 views

ssh linux to mac inside and outside lan

Hi this is my first post and I was wondering if anyone can help me? I have ubuntu on my home pc and I want to be able to ssh to a macbook. When they are both on the same wifi network it's no problem, ...
-1
votes
2answers
40 views

Need the sshd server be run in root privilege for a password-less login? [closed]

I mean: if the sshd is't being run in root account, then how can it let the remote ssh client run shell or other command in root account ? if sshd call the login command, then the user could login ...
0
votes
2answers
56 views

My ssh key doesn't work, permissions look good [duplicate]

My permissions look like this: -rw-------. 1 smpadmin staff 400 May 21 2014 id_rsa.pub -rw-r--r--. 1 smpadmin staff 505 Dec 14 19:19 known_hosts drwxr-xr-x. 45 smpadmin staff 4096 Jan ...
0
votes
1answer
53 views

ssh authentication and remote command output's redirection

I need to run a remote capture on a host via ssh and to authenticate twice, but the second prompt is being redirected. ssh -t user@host "sudo tcpdump -s 0 -n -w - -U -i eth0 not port 22" > ...
0
votes
1answer
65 views

want to ssh to a server behind NAT from a host also behind NAT

I want to ssh into a server at my home which is behind NAT enabled router from my laptop when I'm away, say whlie using a public wifi. Obviously, neither local nor remote port forwarding will work. ...
0
votes
1answer
14 views

How do I apply a manifest from a Puppet Master server to a Puppet Agent node server?

I installed Puppet Agent on a CentOS 7 server. I installed Puppet Master on a different CentOS 7 server. I'm using the free version of Puppet on both servers. The Puppet Agent server requested a ...
2
votes
3answers
41 views

How to log into a single SSH host without passphrase?

I usually have to access a couple of remote and local SSH hosts, this works perfectly, I actually want to have to type in the passphrase every time. However, there's a single SSH host on my local ...
4
votes
1answer
469 views

What the devil is overriding my path on SSH login?

I have a server running a Gogs instance (a self-hosted github clone). I recently did a manual upgrade, and moved a bunch of things around, including changing the username that the remote users log ...
1
vote
1answer
27 views

what happens to remotely run process when remote host disconnects?

Say, I ssh into a remote host, initiate few processes on it and disconnect before the processes terminate. What happens to the processes? Do they continue?
-1
votes
0answers
22 views

How can we send CTRL+C to a new SSH connection?

How can we, at earliest send CTRL+C when connecting to an SSH server? So I am the client, I connect to an SSH server, but I want to send CTRL+C, right after login. But I need to log in, just send ...
-1
votes
1answer
30 views

Infinite loop one liner for pen testing

A bunch of years back I found this one line of bash script that basically would overload a linux system. All I can remember is that it looked something like this and had the pipe (_(:;){:()|:()}); ...
3
votes
2answers
36 views

How much RAM should an SSH connection typically use?

I'd like to ask about how much memory an SSH connection should take typically. Here is how I'm finding out how much of a RAM hit is incurred: Kindly don't get vehement that I'm using a GoDaddy shared ...
1
vote
3answers
87 views

ssh change user and execute command

This is my command that I have in my script: ssh -i $KEY $USER@$HOST "sudo su tom; echo $DATA >> /home/user/file.txt These commands work fine on there own but together in the script it just ...
1
vote
0answers
21 views

Remotely start LXDE via SSH

How can I remotely (e.g. via ssh) start lxde on my linux box which has no keyboard and mouse but only a monitor attached to it? I can login via ssh fine.
3
votes
2answers
37 views

Multi-hop socks proxy, how to?

I'm starting from a suggestion to use jvisualVM via SOCKS. However, I have a somewhat complex topology. Starting from my laptop, I have two intermediate hosts to get through to reach the machine I ...
2
votes
1answer
31 views

cat [file..] pipe another cat command

cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys" can someone explain how the quotations works. From what I understand. I am reading ...
0
votes
2answers
20 views

Running shell job on remote server, closing terminal without closing job

I am running jobs on a remote server using torque. I currently have a an annoying problem. When I run my jobs this is what I currently do: Log into another computer via Teamviewer From that ...
0
votes
0answers
28 views

ssh some commands through (a variable amount of) intermediary hops

(I hope I did search the se sites correctly to avoid duplicates: I did not find a similar question/need, and most similar questions only hop through 1 hop) : the need: I need ideas to create a way to ...
0
votes
0answers
18 views

Getting stuck in overwrite mode in Tmux

I'm connecting to a remote server from Windows using a variety of ssh clients: Putty, MobaXTerm, FireSSH. I'm doing something, I don't know what, that puts me permanently in overwrite (insert) mode in ...
3
votes
3answers
219 views

Does temporary disconnecting of ssh session affect a running program?

i found that if my internet connection is disconnected during a ssh session to a remote Linux server, and then reconnect within a short time, the ssh session is still alive. If I am running a program ...
1
vote
1answer
26 views

Confirming that a reverse ssh tunnel has been established

I have a reverse ssh tunnel established between a client and a server computer. The client connects on the server on port 22, and creates a reverse ssh tunnel on port 4030. After the client computer ...
0
votes
1answer
10 views

How to setup a background ssh tunnel which could automatically quit with terminal/session?

What I want is like following: I could setup a ssh tunnel at background on a Linux machine(Actually, I'd like to setup it in my .bashrc) I could run process using this tunnel as any user on this ...
0
votes
0answers
24 views

ssh_exchange_identification: Connection closed by remote host issue

I am facing issue with one Linux machine as sometimes I am getting below error when I try to open ssh session: workspace/mtas-vcsh-st-execute-tsp>ssh telorb@10.64.90.187 ...
0
votes
0answers
34 views

How do i connect to a remote server using the ssh key of the remote server from my local

I have connected to a remote server from my local server by using the public key of my local system on the remote server. However, I have a situation where I will not know the remote server until the ...