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

learn more… | top users | synonyms

1
vote
1answer
144 views

Linux can't recognize the right password when ssh'ing?

I've created a local port forwarding and I was trying to ssh into my own port. During the process, I found that my own Linux won't recognize me even when I have the right password ...
1
vote
3answers
389 views

what does this ssh command mean?

Its an answer I got from questioning about port forwarding but I'm not sure what it means.. $ ssh lab_desktop -L 2200:lab_server:22 -vvv my wild guess: first get connect to lab_desktop and then ...
2
votes
1answer
67 views

how to connect ssh 'with' specified port?

I know how to connect 'to' a certain port when ssh'ing. ssh user@remotehostip -p XXX but is there a way to establish a ssh 'with' a certain port? I mean, is there a way to specify the port which ...
3
votes
2answers
170 views

Variable assigned inside ssh command doesn't return proper value

I'm executing the below command in the ssh part of my script. The command is meant to cut the file size from ls option and storing it to a variable. Then print the variable: echo "Enter srouce file"; ...
2
votes
1answer
30 views

how to 'forward' x display data?

this is my situation: there are three computers lab server (CentOS) lab personal computer(window s7) personal laptop(ubuntu) since the lab server only allowed ip address of my desktop at the lab, ...
0
votes
0answers
38 views

Running “gnome-session” or “gnome-panel” over SSH via X yields black bar

I can VNC fine to my machine. But VNC is slow, and to try something else, I wanted to use gnome-session or gnome-panel over SSH via X. But it simply gives me a black bar across the whole screen. No ...
0
votes
2answers
182 views

How to perform a dry-run using rsync over ssh?

I got these errors while trying to perform a dry-run with option -n over ssh on a remote server: # rsync --progress --delete -avhHen ssh /etc/yum root@my.ipaddress:/etc rsync: Failed to exec n: No ...
1
vote
1answer
31 views

What is the correct form of the HostnameSuffixes SSH keyword?

I came across an SSH configuration setting that I've never seen before while following a discussion on an OpenSSH developers' mailing list archive. The particular setting is this: Host * ...
1
vote
0answers
256 views

SSH & ForwardX11 vs ForwardX11Trusted --> beyond my grasp

I am on Ubuntu 14.04 and trying to get my head around ForwardX11 vs ForwardX11Trusted. My default ssh_config contains the following lines: # ForwardX11 no # ForwardX11Trusted yes Further, man ...
1
vote
2answers
36 views

Is it necessary to disown a process for it to continue running after disconnecting?

Would someone be kind enough to explain if & why disown is necessary if you wish to keep a job running even after you disconnect. I ask because every site I have visited says to use disown and bg ...
7
votes
4answers
254 views

Stopping output from a program run in SSH session NOW

Problem I execute command that outputs LOTS of information through SSH. For example, I foolishly add debug information inside a loop that executes million times, or just run cat /dev/urandom for ...
1
vote
1answer
27 views

How do I run a sock proxy via ssh on a non-standard port?

I am running into a bit of trouble accessing a web application running on port 9293 on a remote server only accessible via ssh on port 5634. I've configured FoxyProxy to route all traffic meeting the ...
0
votes
1answer
81 views

How do I log out/disconnect from SSH after starting a process with output to keep it running? [duplicate]

I ran a script from the command line today (php, not sure that matters) which has output I wanted to watch but I had to go home before it finished and I couldn't figure out how to exit without killing ...
2
votes
1answer
91 views

SSH Command behaves differently in Expect Script

I'm using this command on Server1 ~# ssh root@Server2 /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys to append the contents of Server2's id_rsa.pub to the authorized_keys of Server1. It ...
1
vote
1answer
172 views

ssh ubuntu to android : No route to host

I am trying to log into my android phone (running sshdroid), using my laptop (ubuntu 12.04). I am on a university sub-network (on wifi), and so is my phone. I tried the following command: ssh ...
3
votes
1answer
194 views

command line method or programtically add ssh key to github.com user account

Is there a way to identify with a username and password to github.com servers for the purpose of adding an ssh key to the github user account? So far everything I've read suggests that a users ssh key ...
1
vote
1answer
66 views

SELinux preventing ssh via public key

I have user $USER which is a system user account with an authorized users file. When I have SELinux enabled I am unable to ssh into the server using the public key. If I setenabled 0, $USER can now ...
0
votes
1answer
97 views

Equivalent of scp -l bandwidth_cap for .ssh/config?

Short form: You can limit the bandwidth the scp uses with the -l switch, you pass a number that's in kbits/sec. I'd rather set this in my .ssh/config file for certain names machines. What's the ...
-1
votes
1answer
273 views

Operation timed out SSH to GitHub

I'm trying to organise my ~/.ssh/ folder, so I've created ~/.ssh/git/id_rsa and ~/.ssh/git/id_rsa.pub for my GitHub account. I've also created a config file, as below: Host github.com User ...
0
votes
1answer
23 views

Deamon openvpn configuration file with .conf?

In the video connected to a Linux to another Linux via SSH, the second openvpn daemon already started and configured with user/password requested at the entrance. http://youtu.be/tSNCE6j2zxM How do ...
1
vote
2answers
638 views

MaxStartups and MaxSessions configurations parameter for ssh connections?

I am copying the files from machineB and machineC into machineA as I am running my below shell script on machineA. If the files is not there in machineB then it should be there in machineC for sure ...
0
votes
1answer
48 views

ssh into an account which has no home directory

As a follow up to my previous question, I have decided to create the local user accounts as below. adduser --system --no-create-home USERNAME Now, I would like the local users to be able to access ...
3
votes
1answer
2k views

“sudo: sorry, you must have a tty to run sudo” when using sudo in a remote script

I want to run a series of sudo-elevated commands on a remote machine from an embedded script. To simplify the question, I'm just trying to run sudo id and get it to tell me that it's root. I am ...
1
vote
0answers
69 views

MIT Shared Memory Extension or MIT-SHM over ssh

I successfully created a privileged lxc archlinux container on an archlinux host with lxc. I set up a static ip via dnsmasq and ssh into it and I use xauth to forward X11. I then call programs like ...
1
vote
1answer
57 views

Using a laptop as a bridge between Internet and LAN for SSH connections.

We have a lan and a server running HPUX that isn't connected to the Internet. I have a server and a laptop on the same network. When I plug in the laptop via ethernet cable, its Internet connection ...
4
votes
2answers
222 views

Force command to be run on logout or disconnect?

I'm logging in to a system via SSH and I'd like to be able to force a command to be run on logout, whether that's an intentional logout (exiting the shell) or because my SSH connection has ...
1
vote
1answer
127 views

Help updating OpenSSH to v6.6

My system is vulnerable to OpenSSH Wildcards on AcceptEnv Vulnerability, CVE-2014-2532. I have tried to update openssh to version 6.6 for centos but I can not get repository[sic] for that version. ...
1
vote
1answer
79 views

Compiling OpenSSH client or Dropbear for Android

I have an interesting problem. I'd like to use a private SSH key with my Android Terminal Emulator (jackpal.androidterm). I'd like to install the private key in a fairly-secure location and be able ...
3
votes
3answers
154 views

Using wget over ssh with a terminated session

I have a RaspberryPi. I want to download a big file with wget but the problem is that once I log into the Pi and use wget to download the file, it will abort the download when I close the session. ...
8
votes
2answers
628 views

SSH: which one is my public key

My university asked my SSH public key as I need access to universities computer cluster. I generated SSH key using linux ssh-keygen -t dsa command. However, I don't know what information they need ...
1
vote
1answer
101 views

Autocomplete server names for SSH and SCP

I have a few servers configured in ~/.ssh/config, such as alpha and beta. How might I configure Bash such that the commands ssh al<tab> and scp file.tgz al<tab> autocomplete the names of ...
1
vote
1answer
95 views

How to scp from remote host to remote host with pem files and turning off strict host checking?

From my DEV server I'd like to copy files from my stage server to my prod server. I already have SSH keys setup between my DEV server and my stage server. But I haven't had any success trying to ...
0
votes
0answers
144 views

can't connect using telnet, ssh. Connection refused

My imagine network (using marionnet) looks like that: m1[eth0 192.168.1.1/26] switch m2[eth0 192.168.1.2/26] [eth1 192.168.2.1/28] switch m2[eth0 192.168.2.2/28] I can ping from any machine to ...
2
votes
0answers
101 views

Using nvidia-settings over ssh

Now the new nvidia-driver has implemented CoolBits for the newer graphics cards I'm attempting to control fan/clock speed over ssh. When attempting to run anything with nvidia-settings via ssh I get ...
8
votes
4answers
725 views

I am using `&`: why isn't the process running in the background?

I know that I can append & to a command to run the process in the background. I'm SSH'ing into an Ubuntu 12.04 box and running a python program with $python program.py & -- but when I go to ...
2
votes
1answer
44 views

Non-standard logins

As part of a sort of esoteric "hack" I'm putting together, I've modified my /etc/passwd and /etc/shadow files to result in a user called ニエット ("Niet") with a shell pointing to a custom script I have ...
0
votes
0answers
62 views

Centos not respecting ClientAliveCountMax

I'm running Centos 6.3 and trying to connect to it via OS X through capistrano deploying a Rails project. Capistrano is notorious for not respecting ServerAliveInternal from the client so I must set ...
2
votes
1answer
127 views

How to set the tab name to an alias hostname of the remote host I'm connected to?

As you might know, by default, the hostname of an AWS instance is something like ip-12-34-56-78.us-west-2.compute.internal, so when I ssh to this host, the tab name is changed to root@ip-12-34-56-78 ...
3
votes
1answer
84 views

how to use rsync (using password-less ssh), with sudo just on the local side?

This command works fine for me with password-less ssh: rsync -aqve ssh ${user}@${remote_host}:/etc/bind /tmp/etc/bind Since I would like to rsync directly to my own local /etc/bind with root ...
0
votes
1answer
114 views

How do you keep the password hidden when invoked during the su command?

This is the first time it has happened to me where I am using the su command and it actually displays the password on the terminal and doesn't stay hidden. Here is my code snippet: sshpass -p ...
2
votes
1answer
54 views

How do I get the information I need in order to use unison and ssh to synchronise files

I have a desktop at home, and a laptop that I take with me to places away from home, both have Fedora 20 installed. I edit the same files on either machine, and would like to be able to synchronise ...
7
votes
1answer
189 views

stderr over ssh -t

This sends output to STDERR, but does not propagate Ctrl+C (i.e. Ctrl+C will kill ssh but not the remote sleep): $ ssh localhost 'sleep 100;echo foo ">&2"' This propagates Ctrl+C (i.e. ...
2
votes
1answer
152 views

Are dropbear and OpenSSH host keys compatible?

The title basically says it all. But mind: host key, not the login key. And if they're not compatible out of the box, is there a way to convert between them - and what would be the steps in that ...
3
votes
1answer
51 views

rsync'ing multiple {src,dest} pairs

I have a remote server on which I am deploying code. I am currently using scp to upload code, but scp is very slow and I'd like to switch to rsync (or something else which is more efficient). The ...
0
votes
0answers
12 views

SSH: connect through intermediary server in just one step (through forwarded port) [duplicate]

Related question: initiate ssh connection from server to client I have intermediary server with public IP (let it be SERVER), and I need to establish connection between two computers (A and B) ...
12
votes
2answers
664 views

How to terminate remotely called “tail -f” when connection is closed?

I just noticed that if I execute ssh user@remote_host tail -f /some/file , then tail -f /some/file keeps running on the remote_host even if ssh connection is closed! So, after several connects and ...
3
votes
3answers
721 views

Permanent background ssh connection to create reverse tunnel: what is correct way?

Related question: initiate ssh connection from server to client Answer from there helped me a lot, this command does what I need: ssh -R 2225:localhost:22 loginOfServerWithPublicIP@publicIP So I ...
3
votes
1answer
531 views

How to use SSH to make a dd copy of disk A from host B and save on disk B?

I want to make remote backups from disk A at will using SSH from computer B. I want to save the backups to disk B. How can I do this? I've tried using $ ssh hostname@my.ip.add.ress "sudo dd ...
3
votes
2answers
70 views

Have ssh-add be quiet if key already there

I want to put ssh-add /path/to/special_key at the top of a script. This works fine, but it always prompts for the passphrase. This is strange, and a little annoying, as it still asks for the ...
1
vote
2answers
187 views

How can I ssh to a remote server with an automated password and no key?

I have a remote server. I planned to use public keys to connect over ssh without typing the password but the remote system rejects public key authentication. So what is the best way to do it? What ...