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

learn more… | top users | synonyms

1
vote
1answer
33 views

How to refresh chromium (F5) from shell script in debian (alternative of xdotool)

I need some help finding an alternative to xdotool. I am using a Raspberry Pi to refresh a webpage regularly using chromium. For this, I use a shell script: xdotool search --name chromium key ...
0
votes
2answers
30 views

Pinpoint strange text at initiation of SSH session

On my OpenSUSE 13.1 (Gnome 3) system, whenever I start a SSH session, somewhere in the initialization, the terminal outputs some strange lines. Last login: Sat Nov 29 00:00:00 2014 from [HOSTNAME] ...
0
votes
1answer
34 views

How to stop background processes started with screen

This question might have been asked before but I don't see it. I use screen ssh to remotely start processes that take multiple days. I ssh in, start multiple processes in the background, and detach ...
12
votes
6answers
8k views

Copy input to clipboard over SSH?

Here's my usage case: I'm often connected to other computers over SSH for work and I often need to copy and paste documents/text from the server to locally running editors for writing examples and ...
34
votes
4answers
5k views

Why is root login via SSH so bad that everyone advises to disable it?

Everybody on the Internet advises to disable root login via SSH as it is a bad practice and a security hole in the system, but nobody explains why it is so. What is so dangerous in enabling root ...
1
vote
1answer
35 views

How to connect to another machine over SSH?

Is it possible, by simply issuing: ssh user@ip_number:port and providing a password? Or does something have to be installed, or not blocked? I am referring to two machines over the Internet.
2
votes
3answers
41 views

SSH command with file redirect not working

I want the following command's result to redirect into a file on the remote server, as I want only unique lines in my authorized_keys file: ssh root@10.100.10.26 awk '!seen[$0]++' ...
-1
votes
0answers
14 views

X11 forwarding through a server where X11Forwarding is disabled

How can I push an X11 forwarding session over an SSH tunnel when the server doesn’t allow that? I guess I should use some port forwarding or edit ProxyCommand in /etc/ssh/ssh_config, but none of them ...
9
votes
9answers
12k views

Automatically run commands over SSH on many servers

There is a list of IP addresses in a .txt file, ex.: 1.1.1.1 2.2.2.2 3.3.3.3 Behind every IP address there is a server, and on every server there is an sshd running on port 22. Not every server is ...
1
vote
2answers
258 views

Can SSH-Agent work from a remote bash script?

Server A needs to connect over svn+ssh to Server B to grab some source files for deploying on Server A. My deployment script runs from my local dev machine via: ssh serverA 'bash -s' < deploy.sh ...
17
votes
3answers
13k views

Is it possible to set Gnome Terminal's title to “user@host” for whatever host I'm connected to?

I'd like to set the terminal title to user@host so I can easily tell which machine I'm connected to from the window title. Is there a way to do this from SSH or from GNOME Terminal?
0
votes
0answers
28 views

SSH client connection not working to remote servers not working

I am unable to connect to other machines from one of my servers. Here is the verbose output (IP, domain, port are masked. OpenSSH version info removed): $ ssh -vvv user@example.com -p yyyy debug1: ...
74
votes
8answers
32k views

How can I disown a running process and associate it to a new screen shell?

I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back. One way I thought of doing that was to transfer its ownership to a screen shell, ...
2
votes
5answers
4k views

Fix terminal title after SSH remote logging to another machine

right now I am using an one-line perl code to change titles of my terminal bars, print("\e]0;@ARGV\7"); but every time after I ssh to another remote machine, the title will be modified by the host ...
2
votes
1answer
287 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
1
vote
1answer
37 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
1
vote
1answer
365 views

Directx application using wine over ssh -x

I'm trying to run a Windows app (Artemis video game - server mode) on my archlinux server. As it is an windows application I have to run it using Wine. As I'd like to be able to launch the server ...
1
vote
0answers
48 views

GLX extension missing on display “localhost:10.0”

I have installed scilab 5.5.1 on rocks based cluster(with GPU card & nvidia driver installed), and i am able to successfully use scilab on the same . Issue arises when i need to use scilab from a ...
2
votes
1answer
443 views

ssh-add -D doesn't erase stored keys from the ssh-agent

How come this happens?: stan@tcpc:~/.ssh$ ssh-add -l 8192 e0:45:5e:cc:45:3e:17:2b:a6:54:6f:8d:53:1b:j2:e3 github (RSA) 2048 25:41:53:a6:45:5d:ac:eb:5c:45:f8:ce:42:a9:he:aa BITBUCKET (RSA) ...
0
votes
1answer
26 views

SSH connection gets lost, but not when logged in to MySQL

When I open an SSH connection to our database server and leave it open for a longer time, the connection gets lost at some point. I don't know why or how, but this happens a lot. I still see the ...
1
vote
0answers
23 views

Dynamic ~/.ssh/config

I'd like make my ~/.ssh/config file dynamically generated by a shell script (or anything else that prints to STDOUT). Is there a UNIX trick to make reading a file result in executing a command & ...
4
votes
3answers
194 views

Automatic login via ssh (no GUI environment installed / no ssh-agent available)?

I have three systems, and I want to have them doing backups between them periodically. The two of them, have Debian Wheezy installed and the other one has Ubuntu 12.04 installed. Only the Ubuntu has a ...
1
vote
2answers
33 views

SSH Tunneling Through a Firewall to a Cluster

I work at a university but I often work remotely. There is a cluster computer at the university that I need to be able to interact with, but its behind a firewall. Let's call the firewall F and the ...
2
votes
1answer
147 views

A window asking me to enter my ssh passphrase is popping up randomly. Why?

I'm on Ubuntu 14.04. For a few weeks now a small window keeps popping up randomly, grabbing my keyboard and asking me to enter the passphrase for my ssh key. The Window's title says "OpenSSH", and it ...
2
votes
1answer
981 views

Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'

I am using a Macbook SSH terminal and generated RSA key pairs and uploaded remote id_rsa.pub with approved permissions. I can connect with remote Apache web server. I can create, open, move, modify ...
0
votes
0answers
23 views

“Shell connection” item disappeared from Midnight Commander menu

I have performed an upgrade of my distro (openSUSE 13.1 -> 1.32) and now no long see menu item in Midnight Commander that allows me to perform operations with remote files via SSH. Coressponding menu ...
1
vote
5answers
135 views

Interactive ssh works, but not rsync or scp, on OSX

The motivation is that there's a server that I can ssh into (with or without key pairs set up ... i.e., without or with a password) but that I cannot send files to via rsync, scp, or sftp. Someone ...
0
votes
1answer
60 views

sshd resets connections on different port

I want to run SSHd on my raspberry device on two ports. I've added Port 22 Port 5500 to /etc/ssh/sshd_config, and ran /etc/init.d/ssh restart. Problem is, that connection on port 5500 is always ...
3
votes
2answers
230 views

SSH Bash Jail Session

I've seen some game tunneling service providers that jails the customer's account to a Information screen upon login and any input is ignored. Ctrl+C closes the SSH session, and disconnecting. This ...
4
votes
1answer
123 views

Immortal SSH Session

I've got a little TurnKey Linux Debian Squeeze VM that I use for SFTP. I had a user login and transfer a file the other day and now I can't seem to kill the session. I'm still a little shaky in ...
3
votes
1answer
54 views

SSH for user without a login password

I have created a user without a password $getent passwd logcoll logcoll:x:998:999:Log Collector,,,:/var/backups/logcoll:/bin/sh This user has no password, and this machine requires users to login ...
10
votes
3answers
3k views

How can I make a user able to log in with ssh keys but not with a password?

I would like to create a user and have no password. As in you cant log in with a password. I want to add keys to its authorized_keys by using root. This is for my automated backup system.
0
votes
0answers
20 views

Network communication between two nodes in a Hadoop cluster

I am running a 7 node hadoop cluster with each box running Ubuntu 12.04. It is running CDH4 setup using Cloudera Manager. It was already setup and running when I came in but now I'm running into a ...
5
votes
4answers
2k views

automatic passwordless ssh at login/restart

I want to have passwordless ssh to persist even after after I restart or logoff and then login. Somehow I have to run ssh-agent and use command ssh-add at login. In a tutorial I read that I should add ...
0
votes
0answers
29 views

nohup, screen and tmux not working when closing connection on yocto linux (intel edison)

I have an Intel Edison with Yocto Linux and standard configurations. It had nohup pre-installed and I managed to install both screen and tmux (by compiling them from sources). Now, I would like to run ...
0
votes
1answer
34 views

Is there a way to specify the list of private keys to add to ssh-agent?

After a few hours of digging, I finally found out why my computer stopped asking me for my key(s) using gnome ssh-askpass. It was very simple, but took me forever to figure out because... well... most ...
1
vote
1answer
62 views

Copy directory with SCP

I'm trying to copy directory from local drive to remote server with -r parameter, however I'm getting: scp: System error: 1633648 (Failed to retrieve error string (err:317)) This is the syntax I ...
5
votes
1answer
6k views

How do I disable SSLv3 in an OpenSSH SSH server to avoid POODLE?

In wake of the newly-discovered POODLE vulnerability, I'd like to disable SSLv3 on all of my SSH servers. How do I achieve this with OpenSSH?
1
vote
2answers
67 views

Unable to allow SSH access for new user [closed]

I currently have an issue, what I am trying to do is disable the root login and use ssh to login as a new user, then su to root when needed. I am unable to actually allow the user to login through ...
1
vote
2answers
460 views

I want to suppress “no access to tty” error message?

I have a bash script where I use ssh to connect to another server and run some commands there. I found some sites that the error (Warning: no access to tty (Bad file descriptor). Thus no job control ...
2
votes
1answer
23 views

Programatically / dynamically adjust SSH session port forwards

I have a workflow where I am trying to do the following: For a given existing SSH session, access the remote machinne and perform a process from which a port is returned (e.g. a remote daemon has ...
0
votes
0answers
13 views

How to troubleshoot: “X11 connection uses different authentication protocol.”

I start an ssh session with localbox % ssh -vvv -Y remotebox 2>debug_ssh_log ...which succeeds. Then I try to run xlogo on remotebox, but the command fails immediately, and the following lines ...
1
vote
2answers
144 views

Fake IP addresses generator

I have an application running on a server that adds a new iptable rule blocking every IP address trying to connect via SSH with a wrong password. Now, I'd like to perform a stress test where many ...
1
vote
1answer
34 views

restricting remote vpn login to ip address in CentOS 7

I have read that OpenSSH itself does not support authentication via specific IP address. In a CentOS 7 installation on a web server, how would one configure the login so that a user would not only ...
0
votes
1answer
45 views

How to create a script to run several scripts on different servers

I need to automate the execution of several scripts, and I'm writing a script. The scripts have to run concurrently because they are part of a benchmarking suite. I'm trying to execute 6 different ...
2
votes
4answers
1k views

Is there a way to have regular expression in ~/.ssh/config

I have two set of server. Test on production. All server have internal ip. currently I am using alias to login: Host pro-10 Hostname 192.168.1.10 ProxyCommand ssh production-server nc %h %p For ...
4
votes
3answers
6k views

bash: /home/user/.ssh/authorized_keys: No such file or directory

Create a ssh key: $ ssh-keygen -t rsa –P "" Moving the key to authorized key: $ cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys bash: /home/user/.ssh/authorized_keys: No such file ...
2
votes
2answers
28 views

Securely making an SSH connection from a public computer

Today, I had to remotely connect to my debian computer at home to fix an issue with a VPN server. I was using my iPhone with an SSH client to fix the issue, but I had a hard time due to the small ...
1
vote
0answers
61 views

User Acces restrict to only one folder

I am trying to establsih SFTP User rights at a server to only one folder, following the guidelines here: ...
3
votes
3answers
3k views

SSH: I have a *.pem private key. How to create a SSH connection using it?

I tried to use putty also. I select this pem key there and got this: Unable to use key file "key.pem" (not a private key). I read that it is possible to convert a pem to a pub key. I did it like ...