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

learn more… | top users | synonyms

0
votes
0answers
10 views

When running some X prog. remotely with ssh -X, it says “libGL error: failed to load driver: r600”

OS: CentOS Linux release 7.0.1406 (Core) Kernel: 3.10.0-123.8.1.el7.x86_64 When I run xcrysden (http://www.xcrysden.org/) remotely through ssh -X, it crashes with error: "libGL error: failed to load ...
0
votes
0answers
18 views

Removed id_rsa unable to recreate passphrase

The other day I tried to make a new ssh key on my vps. For some stupid reason I removed the id_rsa file instead of just typing ssh-keygen -p When I now try to use that command it asks me for the old ...
0
votes
2answers
29 views

Script to SSH to multiple Linux Server and execute a find command [duplicate]

I need a script that can SSH to multiple servers and execute a find command to check when was the last time a file was created. I can get the fine command part, but I'm a little bit lost on how I can ...
1
vote
0answers
15 views

killing tunnels for a user connected with ssh -N

I created a forward only ssh connection with the following: ssh -i id_rsa -o TCPKeepAlive=yes -o ServerAliveInterval=10 \ -N -n -R 127.0.0.12:8888:127.0.0.12:8888 fwduser@192.168.1.201 Mow, ...
1
vote
0answers
50 views

Can't use SSH anymore on my local machine

for some days now I'm experiencing some issues with SSH on my local machine. It's very problematic as I use the versioning software called Git to work on some projects. I'm 100 % sure the problem is ...
0
votes
1answer
15 views

Looking for effective alternative to ssh-copy-id which fails if you do not have the private part of the key?

To my surprise, I discovered that ssh-copy-id fails if you do not have the private part of the key, making it not usable for deploying someone else key. I an looking for a reliable way to deploy ...
1
vote
1answer
25 views

SSH message, source of a after-login greeting command

On a server previously adminstered by someone else i noticed non-standard after-login ssh message. It looks like this: In case of problems please send an email to ....@..... Disk quotas for user ...
2
votes
2answers
43 views

Different ssh login directory from user home

So, I'm working on a remote server via ssh that I log in and out of dozens of times a day, and I'd like to have bash cd to a default directory I've chosen as soon as I login, but I don't actually want ...
0
votes
0answers
26 views

ssh into fedora inside virtual box over internet

I am running fedora server in a virtual box inside a windows 7 host. I can ssh into fedora from this windows 7 host. How ever, I stay out of my place most of the times with a laptop at my disposal, ...
0
votes
1answer
22 views

How to create user with only SSH permissions [duplicate]

I need to create a user which can SSH to a server, but can not run any commands or view anything, for the purposes of tunneling the connection without risk of revealing credentials. How do I do this? ...
1
vote
1answer
28 views

How to install software on to multiple linux clients

Is there any free way or method for ssh that could be used to install and update linux clients for a ubuntu laptop. I do not have password less ssh but the admin password is the same for all of the ...
0
votes
1answer
10 views

Connect to other devices under same AP isolated network

I am trying to debug my android application under a public wifi network. The network seemed to have AP isolation on so I can't connect to my android device using my notebook. However, both of my ...
1
vote
0answers
12 views

How do I correctly configure Danted?

I have a debian droplet on digital ocean that I'm trying to get danted to work on. I know I have the right username and password and I want to set up a socks5 proxy with auth. Maxathon gives me a 130 ...
0
votes
0answers
19 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
27 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
57 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
50 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
19 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
31 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
54 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
32 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
15 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
20 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
31 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
60 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
36 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
43 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
42 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
27 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 ...
3
votes
1answer
24 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
29 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
51 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
45 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
25 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
39 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
48 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
69 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
44 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
43 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
21 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
82 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
18 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
24 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
21 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 ...