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

learn more… | top users | synonyms

0
votes
0answers
5 views

Authenticating a virtual machine against a git server

I have a CentOS 7 VM hosted on a Scientific Linux machine (Both branches are Red Hat). I'm using docker as the SW to emulate CentOS over SL. Communication between both is done through a bridge (a ...
1
vote
0answers
18 views

Using Rsync to SSH and Find files

Hello I am trying to use Rsync to SSH into a remote server and pull a certain type of file that has been modified within the last 24 hours. Here is what I am trying: rsync -avx --timeout=480 ...
1
vote
3answers
38 views

Send email if user accesses the server via ssh

I want to get notified if any person accesses my Debian server via ssh. So I want to send an email whenever a user logs in on my server via ssh, so I added this line at the end of /etc/profile: ...
1
vote
3answers
37 views

Troubleshoot SSH connection problem

I am looking for tips on how to troubleshoot a problem with connecting to a new server via SSH. I am trying to connect using private-key authentication, where SSH uses my local private key to ...
1
vote
1answer
16 views

output log file from some time to some time via ssh

I have a access_log which size is neally 2GB. I want to analyze it from 2015:09:55 to 2015:09:57, but during this period, there have more than 500 items. So I want to output and download the ...
1
vote
2answers
26 views

SSH via cert-authority

I'm trying to use SSH using signed certificates. I'm using ssh -i keys/client.key to connect to the target device. If I generate a public key from that private key (with ssh-keygen -y -f ...
1
vote
1answer
42 views

Service network restart same as ifup and ifdown?

Can service network restart take place of ifdown and ifup? I was managing my server the other day using SSH and I changed my internal IP from DHCP to static. After editing the config file I had to ...
0
votes
1answer
24 views

UnixWare 7 fails to pass variable to Linux

I'm new to Bash and I have a problem that find difficult to solve, may be easy for some. I have a really old SCO UnixWare 7 system with no SSH only RSH available. SCO doesn't exist anymore , I ...
2
votes
0answers
10 views

Forwarding C-c to a remote tmux session

I have bind C-c new-window (and other similar bindings, but only C-c is giving me an issue) in my .tmux.conf. On a local tmux session, the binding works as expected, but in a remote tmux session(over ...
0
votes
0answers
16 views

How to manually change “Host Access Control” settings?

I have a server I am managing. Is there a way to alter via SSH the settings made from WHM>Host Access Control. The reason being that after some changes to WHM, it now says "Your license could not be ...
1
vote
1answer
27 views

How to remember ssh password with lsyncd?

I' m using lsyncd to sync a folder between local and remote machines with default.rsyncssh config. But it asks for password every time file changes. I found there' s an option password_file, but ...
0
votes
1answer
54 views

Run a command under sudo over SSH

I am accessing remote machine in Linux using Bash scripting.My code is as follows #!/bin/bash ssh -i manu_bp.pem ubuntu@54.68.67.68 <<EOF sudo -s cat ...
0
votes
2answers
34 views

How to start remote command line session? [duplicate]

I use putty to login to the server via ssh. This creates a session locally; meaning if I disconnect from putty, the session is lost. Is there any way that the session can keep running and be ...
2
votes
2answers
40 views

How can I invoke a prompt for an ssh key passphrase during the execution of a script?

In my ssh_config file there are multiple entries for sites on the same server such as: Host site1 HostName 123.1.1.1 User myuser Port 13245 GSSAPIAuthentication no ...
1
vote
2answers
38 views

How to get asked for SSH key passphrase once and only when needed?

(I have read many of the questions on this site that look related and I believe this is a genuinely new question.) I have lots of keys on lots of servers and they're all protected with passphrases. ...
0
votes
1answer
23 views

Sporadic connection errors ssh_exchange_identification: Connection closed by remote host

Most of the time ssh user@mydomain.com works fine, but sometimes I get this error message: ssh_exchange_identification: Connection closed by remote host Is there a log with all these errors in ...
0
votes
0answers
10 views

Unable to connect to RHEL client release 5.6 (Tikanga) [closed]

Unable to connect to the rhel server via ssh. Error: ssh_exchange_identification: Connection closed by remote host.
3
votes
1answer
23 views

Understanding ssh X11 forwarding

I have a rather odd setup I'm trying to get working. I have an Ubuntu install running in a container (through Proxmox). The host computer is CentOS. Neither server is running an X instance. My host ...
2
votes
1answer
30 views

Running command on server, but have the server read/write local files [duplicate]

Is it possible to have a remote machine run a command, but redirect all reads and writes to a local machine. Example: I have a bunch of scripts in folder 'project'. When 'make simulate' is run in ...
0
votes
1answer
28 views

One liner to ssh into a server, specifying an intermediary to tunnel through [duplicate]

At my company, In order to SSH into anything, I first have to SSH into an intermediary server like so: (me@local.machine) ssh intermediary.server.com (me@intermediary.server.com) ssh ...
0
votes
1answer
50 views

ssh is not aware of client hostname?

I have two servers. Say A and B. I ssh-copy-ided on both servers to each other. And I can connect from A to B without password. But I failed to connect from B to A. I found that audit log is ...
0
votes
0answers
10 views

Putty not asking for Two Factor Authentication Code

I'm running a CentOS 7 server. So I've installed Two Factor Authentication with Google Authenticator a while back and all was well. However I can't access my server at the moment over SSH. PuTTY and ...
1
vote
3answers
44 views

Tailing log files in two different hosts

I'm trying to tail two log files in different hosts and use the merged output as a single one. ssh HOST_1 "tail -f MY_LOG_FILE" I'm also using mkfifo to create a named pipe. mkfifo MY_PIPE The ...
0
votes
1answer
40 views

Not able to connect to my Ubuntu SSH Server even after port forwarding on router

I am using a Ubuntu Laptop on a WiFi router. I have installed SSH server on it so that I can access it from my office network. I have forwarded port 7000 from my router settings. Now, when I try to ...
1
vote
0answers
24 views

How to create reverse dynamic ssh port forwarding

I'm trying to set up an ssh tunnel layout where: client A (not ssh-server enabled) initiates ssh connection to server S socks server is opened on server S:yyyy that tunnels all data via client A ...
2
votes
0answers
38 views

Increase SSH ConnectTimeout greater than 60 seconds

I don't seem to be able to increase the SSH connection timeout much beyond a minute: $ date; ssh home-qnap -o ConnectTimeout=7200; date Wed 14 Jan 2015 15:23:32 AEDT ssh: connect to host home-qnap ...
1
vote
0answers
44 views

ssh not using ~/.ssh/config, even after I play around with permissions

I tried modifying my ~/.ssh/config file to allow automatic fast X forwarding as per this site http://xmodulo.com/how-to-speed-up-x11-forwarding-in-ssh.html I then tried logging into a server and ...
0
votes
0answers
61 views

How to give shell access within chroot environment having different home directories? [closed]

I want to give limited bash shell commands or we can say shell access to the chrooted users but after configuration users are able to do sftp only. I have also found that it is possible by providing ...
1
vote
1answer
42 views

Can ssh (agent) work with two separate identities? [duplicate]

I use an Ubuntu 14.10 distribution, and two private keys, one encrypted (~/.ssh/E.key), and one not encrypted (~/.ssh/NE.key), which I use for accessing two github repositories, respectively, repoE ...
0
votes
1answer
39 views

Logging in through ssh tunnel with rsa key still giving password prompt

I have two laptops (Host A and Host C) with dynamic IP addresses and one desktop (Host B), all of which are running (Ubuntu) Linux. Right now I have things set up so I can access Host A from Host C as ...
0
votes
1answer
16 views

Hop scp and sshfs using ssh tunnels

Here's what I have: A desktop and a laptop both behind a firewall, both of which can connect to an ssh capable server. Here's what I can do: Create a tunnel from server to desktop by running this ...
1
vote
1answer
69 views

Forwarding X11 not working - Error: Can't open display: localhost:11.0

LM 17 Xfce OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 Despite googling everywhere, I cannot seem to get this to work. I keep getting this error. $ xlogo Error: Can't open display: localhost:10.0 I have tried ...
0
votes
0answers
19 views

Is it possible create a ssh jail with gcc and g++ access? 14.04 Ubunutu

I would like to share server access with my computer science cohort and I wanted to know if its possible to create a ssh jail with gcc g++ access. What are best practices and how might you create ...
1
vote
0answers
16 views

openssh-server doesn't start in Docker container

I am having a weird problem. I am not able to ssh to docker container having ip address 172.17.0.61. I am getting following error: $ ssh 172.17.0.61 ssh: connect to host 172.17.0.61 port 22: ...
1
vote
1answer
40 views

automatic ssh connection with use the passphrase key

I use the key pair with passphrase for the host connection on ssh. Is it possible to specify this passpharase in ssh_config on the client?
1
vote
1answer
23 views

How do I transfer files over ssh and also change their permission on the remote server without having to log in twice

guy@home~% scp file.* guy@server.server.com:/users/guy/public_html/kool-stuff/ Ok so this transfers some files. Then I usually have to login in another terminal and do this in order to make them ...
0
votes
1answer
43 views

I am accessing remote machine in linux using Bash scripting

I am accessing a remote machine using the ssh command and a pem file. My code is as follows: #!/bin/bash ssh -i rijo.pem ubuntu@90.45.74.51 <<EOF sudo -s var=`cat ...
1
vote
1answer
20 views

SSH not giving indication that the public key is being used for login

I have a public key to log on to my server. This key is password protected. However, when I log in to my server, there's no indication that the key is ever used. I just log in with my password as ...
0
votes
0answers
46 views

Can I “hijack” a UNIX shell from another login? [duplicate]

Let's say I'm starting a job in a Unix terminal on a machine (a Mac if it matters), and this process does a lot of things and keeps printing output to the terminal. Then I go to another machine and ...
0
votes
1answer
25 views

Directory .ssh problem [closed]

I have been trying to Create a Directory .ssh in /home/user/.ssh and I keep getting error file directory already exist. I have not created .ssh directory. I have been using mkdir /home/user/.ssh How ...
0
votes
1answer
25 views

Connection lost to VPS While using iptables by default policy as DROP for INPUT, OUTPUT, FORWARD

I'am using iptables in many server's but now stuck with this issue while using default Policy as DROP. Here is my rules which i have used in VPS, Tried many time's everything seems fine but VPS ...
1
vote
1answer
66 views

awk in ssh in su in a command substitution

I am creating a script that will ssh to a host and print all the user accounts and when they will expire. On a host I can run awk -F':' '{ print $1}' /etc/passwd and it will give me a list of all ...
0
votes
2answers
38 views

What are the Implications of Passwordless SSH

If UNIX users reach servers via SSH, and we only want to allow pubkey logins, are there any other items that need to be added to this list, that I should be concerned with? Allow pubkey login in ...
3
votes
1answer
249 views

Changed SSH port without allowing it through firewall, locked out now - what to do?

I have a VPS where I changed the SSH port from the default 22. Unfortunately I forgot to allow the new port through the firewall. I don't have physical access to the server, and my host does not seem ...
3
votes
0answers
67 views

Debugging ssh: slow, but fast with -t [closed]

Just today my server has started being slow at ssh login when a terminal is not requested. The delay seems to be random between 0 and 40 seconds and is reproducible every time. The surprising part is ...
0
votes
1answer
42 views

block from SSH and FTP

yesterday i was upload some images using filezilla to my VPS , and today when i tried to login into my VPS i got connection time out , same thing when i tried to access using FTP. but i can acces ...
1
vote
0answers
62 views

Why does having cron run a remote command over ssh on a Cisco router get interrupted?

I have been tasked with making sure that if a particular server at work dies, we know about it right away. Because I'm not there (no one is really), I have written a script to run on my home router ...
5
votes
0answers
49 views

HURD: Why is remote process not killed?

On most UNIX systems this will not leave a process running: ssh example.net sleep 1000 <<CTRL-C>> I have tested this behaviour on aix centos debian dragonfly freebsd hpux irix mandriva ...
3
votes
1answer
52 views

What is the difference between letting nohup append to 'nohup.out' and explicitly redirecting it to a file?

Consider the following scenario: tail.sh: #!/bin/bash tail -f test.txt invoke.sh: #!/bin/bash nohup ./tail.sh & invoke_explicitredirect.sh: #!/bin/bash nohup ./tail.sh > out.log & ...
2
votes
1answer
47 views

Concatenate and pass as parameter, bash

Need some help with removing default gateway. For example, there is an IP 192.168.4.15 with default gateway 192.168.4.14. I connect to WLAN with gw 10.0.0.1 and after that I would like do remove ...