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

learn more… | top users | synonyms

10
votes
2answers
766 views

How to ensure SSH port is only open to a specific IP address?

This is my /etc/sysconfig/iptables: It has two ports open 80 apache and 22 for ssh. # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. ...
1
vote
3answers
47 views

Using nohup to keep a script running indefinitely

I am very new to Linux and I've only been using it to SSH to my web server using Putty. The issue I am having is this: Basically I've got 2 php scripts. One get_tweets.php constantly listens for ...
1
vote
1answer
24 views

VNC & SSH : local (win-putty) -> hop (linux) -> remote (linux)

I'm gettin a headache trying to access a remote VLC & SSH. This is the situation : Local : Win box behind NAT, dynamic IP. I want to connect from here. Hop : Linux box, static IP server Remote ...
3
votes
1answer
21 views

How do you verify if an INCOMING ssh tunnel is still up and who it belongs to?

See edit below for short version I am having issues displaying the status of the ssh tunnels on our server. Here is some relevant info: user001 = remote client's username 123.123.123.123 = ssh ...
1
vote
2answers
57 views

New users cannot connect to server via SSH

An SSH server using RSA keys for authentication is running on Ubuntu 14.04. My original account can connect to the server using SSH (PuTTY). However, the following issue occurs: Disconnected: No ...
5
votes
4answers
12k views

Pseudo-terminal will not be allocated because stdin is not a terminal

I'm trying to set up automatic SSH hopping through a server which doesn't have nc. This works from the command line: ssh -A gateway ssh steve@target (I have added my public key to the SSH agent). ...
35
votes
3answers
41k views

ssh-add complains: Could not open a connection to your authentication agent

I've been trying to get ssh-add working on a RaspberryPi running Raspbian. I can start ssh-agent, when I do it gives the following output into the terminal: ...
6
votes
2answers
6k views

X client forwarded over SSH “cannot open display: localhost:11.0”

I have enabled X forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag ...
2
votes
1answer
2k views

CentOS Local User not able to view directories/files via FTP login

Currently running CentOS 6.5 with vsftpd. As a newbie, I would like to explain my process and then have the proper process explained back to me from scratch which I believe will solve my issue. I am ...
11
votes
5answers
7k views

rsync all files of remote machine over SSH without root user?

I have this command to backup a remote machine. The problem is that I need root rights to read and copy all files. I have no root user enabled for security reasons and use sudo the Ubuntu way. Would I ...
3
votes
2answers
72 views

Shell loses keypresses when running SSH in the background

I'm experiencing a bizarre problem with SSH + Bash + Terminal.app: when SSH is run in the background, the shell appears to randomly lose keypresses ~50% of the time. For example, if I run: $ ssh -N ...
42
votes
7answers
14k views

Is it possible to run ssh-copy-id on port other than 22?

I have a server with SSH running on a non-standard port. Instead of 22, it runs on 8129. To log in, I use: ssh -p 8129 hostname Now, whenever I need to set up a key for password-less login, I have ...
58
votes
15answers
76k views

Why am I still getting a password prompt with ssh with public key authentication?

I'm working from the URL I found here: http://jaybyjayfresh.com/2009/02/04/logging-in-without-a-password-certificates-ssh/ My ssh client is Ubuntu 64 bit 11.10 desktop and my server is Centos 6.2 64 ...
1
vote
1answer
122 views

Identify the outgoing connection (ssh) with the who command

After a ssh connection, if I run the who command on the server : I have this response : olivia@olivia-pc:~$ who olivia :0 2014-09-08 11:40 (:0) olivia pts/0 2014-09-08 11:43 ...
0
votes
1answer
400 views

tmux with iterm2 attach a remote session

I'm using the Tmux integrating with ITerm2, which can create a tab in ITerm 2 for each window created by Tmux. But somehow this doesn't make much sense for the usual SSH scenario, where we first SSH ...
1
vote
1answer
38 views

ajaxterm using proportional font

I have Ubuntu 14.04 LTS, Apache 2.4.7, Python 2.7.6 and Ajaxterm 0.10-12ubuntu1. Ajaxterm is proxied via Apache. Here's the apache.conf excerpt: # Suppresses the Via header ProxyVia Off # Do not ...
1
vote
0answers
50 views

Cannot SSH after switching to Netgear router

I have Comcast Xfinity internet. When I was sent their Wifi router/Cable modem combo box, I was able to use SSH perfectly. However, since the Wifi from the box was weak, I decided to buy my own ...
3
votes
0answers
20 views

Operation timeout (in /var/log/secure)

Sometimes when connecting via ssh to my RHEL server, I get the following message back from the client: Operation Timeout Seems like a network problem, but when I look at /var/log/secure on the ...
0
votes
0answers
13 views

rogue ssh (+svn?) process trying to connect to a remote server

I am using a remote server via ssh, svn, and sometimes with FileZilla all running on Mac OS 10.9.4. I connect to the server with no problems (i.e. my credentials pass every time I enter them). ...
0
votes
1answer
599 views

How to execute Netscaler commands through a remote machine via SSH connection

I have been trying to execute some NetScaler commands like "bind" & "unbind" through a Linux Box via an SSH Connection. Now the Problem is, Manually we are able to enter & execute commands on ...
7
votes
3answers
10k views

ssh remote server on some port other than 22 without password

I am usually connecting to the remote server with ssh user@server.com -p 11000 and then giving the password each time for user. How should I avoid entering the password each time I connect ...
15
votes
3answers
1k views

How to tell if SSH'd into machine? [duplicate]

Is it possible to tell if a terminal is SSH'd into a machine ? some kind of command to do this for me and execute something if I am SSHd?
2
votes
3answers
5k views

“sudo: apt-get: command not found.” after removing some packages

Recently I executed this command: sudo apt-get remove debian-keyring debian-archive-keyring To prevent this such error message: WARNING: The following packages cannot be authenticated! openerp ...
1
vote
1answer
31 views

Avoid trapping by ssh ProxyCommand

I have the following lines in my .ssh/config: Host localhost ProxyCommand none Host n0* ProxyCommand none Host * ProxyCommand corkscrew proxy.m.com 80 myserv 443 ~/.ssh/auth i.e. for localhost and ...
1
vote
2answers
78 views

Run `dbus-send` in a remote system

I'm trying to run dbus-send in a remote system but somehow I'm not able to run it. But the same dbus-send, if I run it in the local system, is working fine. COMMAND: ssh remote@xx.xx.xx.xxx ...
0
votes
0answers
16 views

Remote dbus-send error: Error org.freedesktop.DBus.Error.ServiceUnknown: The name project.AppManager.Service was not provided by any .service files

I'm trying to execute dbus-send over a ssh sesion[in remote target].The dbus service is already launched by the systemd and I just want to call a method of that service through dbus-send ...
3
votes
3answers
77 views

SSH - Is it possible for an SSH session to take complete control of the client? [duplicate]

When I open a SSH session on my terminal to a remote server, is this only a virtual terminal, or is it possible for the SSH server that I am connected to to "take control" of my terminal? For example, ...
1
vote
1answer
40 views

SSH key-only remote login, is disabling password a good practice?

I need a maintenance user which only requires a remote login. I'll preferably use only public keys to login into the account. I thought of just creating the user with useradd myuser, adding later the ...
0
votes
1answer
404 views

How to give password directly while doing ssh command?

I am using Putty to connect to host xxxxxx. I want to produce a shell script in which I should give the command ssh user@yyyyyy along with my password instead of giving it when prompted.
23
votes
5answers
22k views

scp without replacing existing files in the destination

How do I copy an entire directory into a directory of the same name without replacing the content in the destination directory? (instead, I would like to add to the contents of the destination folder) ...
0
votes
2answers
63 views

Locale not being set on initial login on Raspbian/Debian

When I log in to my headless Raspbian box using putty/ssh, the locale is not being set correctly. However, if I su to another user, then su back, the locales are then set. This session shows the ...
1
vote
3answers
6k views

can't get gnome-session working over SSH

I am new to using SSH, so sorry if this question is too rudimentary. To sign into my office computer from my home computer through ssh I go through these two steps: first I login to my office server: ...
4
votes
1answer
852 views

Why ssh-copy-id prompts for the local user password three times?

Noticed from my previous question that when trying to copy an SSH public key to a remote host via ssh-copy-id, I am prompted for the local user password three times: ssh-copy-id myuser@myserver ...
1
vote
2answers
122 views

Different configurations for ssh client depending on ip address or hostname

I have this in my ~/.ssh/config directory: Host 12.34.56.78 IdentityFile ~/.ssh/my_identity_file When I ssh to 12.34.56.78, everything works fine. I'm asked for the passphrase for ...
9
votes
1answer
13k views

How to wget a file to a remote machine over SSH?

I'd like to basically pipe a wget command to a file on a remote server over SSH. How can I do this? I know I could simply ssh into the server and have it download the file, but I'd much rather use the ...
3
votes
1answer
44 views

How do I stop ssh-agent trying all keys with agent forwarding?

Often I'll connect via SSH to VM instances to deploy code from private Bitbucket repositories, cloning repositories via git over SSH. Today I was getting the error: conq: repository access denied. ...
0
votes
4answers
48 views

Backup remote management protocol in case of faulty SSH server

I have a remote computer which I currently cannot access with SSH. The computer responds to ping but SSH gives connection refused, so I suspect the ssh-server is not working for some reason. What ...
3
votes
8answers
716 views

Write a remote managing script

I need to be able to locally run a script that will connect to various servers and run commands on them. What is the best way to accomplish this?
1
vote
0answers
74 views

Load a background image or set the background color if Konsole/Shell is running SSH

I want to set my laptop to load an image in the shell's background or set the background color to red if I'm connected via SSH. How can this be done? With a bash function in .bashrc? I have: Set the ...
1
vote
1answer
18 views

How does ssh server defines which key to use first having more than 1?

I have just found out that on my Ubuntu machine I have more public keys to serve in /etc/ssh directory: $ ll /etc/ssh total 296K -rw-r--r-- 1 root root 237K lip 3 2013 moduli -rw-r--r-- 1 root root ...
1
vote
0answers
10 views

xvfb-run aborting on cluster

I'm trying to run a python script with xvfb-run on a cluster using SLURM; when I use an interactive session (srun) it works fine, but when submitting to a queue (sbatch) it aborts/fails without much ...
1
vote
1answer
27 views

How can I run ssh-add on demand? Can it act as SSH_ASKPASS?

I want to ssh from user@local to user@remote several times per day with an encrypted SSH key, a situation which ssh-agent handles with a good trade-off between security and usability. I'd also like ...
3
votes
1answer
94 views

SSH Public Key authentication - works only after a physical login

I am trying to connect via SSH to my ubuntu server with public key authentication. For some reasons I get an "Permission denied (publickey)." on the client, whenever I execute ssh -i ~/.ssh/id_rsa ...
1
vote
0answers
27 views

sshd suddenly wants a passphrase from Linux box, but not from windows (putty)

My Amazon EC2 instance running Ubuntu is no longer letting me ssh in via my local Linux system. I haven't changed a darned thing on either side but now it wants a passphrase and says nope when I ...
1
vote
2answers
116 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 ...
0
votes
0answers
8 views

tmux session stops updating screen randomly

I use tmux 1.6-2 on a Debian 7.6 (wheezy). I open a new session and start a long running script that gives updates in form of a progress bar and an activity indicator (spinning bar: /-\|/ ). When ...
0
votes
3answers
2k views

ssh_exchange_identification: read: Connection reset by peer

I am on OS X trying to ssh into a ubuntu 12.04 server. I was able to SSH in -- until abruptly stuff stopped working. I've read online to use the -v to debug this. Output is shown below. If I ssh into ...
4
votes
4answers
4k views

What slows down my ssh login?

Everytime I ssh login to a server, it is always very slow. As a reply to my earlier post said, "grepping through a 200 line file should take millisecond or so, so I would doubt its that." I tried ssh ...
1
vote
1answer
41 views

Sourcing bashrc file fails with ssh -t

ssh -vvv -F /home/me/.ssh/config serva -t "source ~/.bashrc" This is the output I get when I use -vvv flag: debug1: Authentication succeeded (publickey). debug1: channel 0: new ...
1
vote
1answer
304 views

SSH Login Alert Using pam_exec

Hi I have been trying to follow the information about pam_exec from here: Ssh login hook? When a user log's in they get: /etc/pam.d/email-alert.sh failed: exit code 8 My sshd file has this at the ...