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

learn more… | top users | synonyms

3
votes
2answers
129 views

Use X over an intermediate machine

EDIT: I didn't setup my sshd_config file correctly on the WORK machine. Even though I uncommented the line X11Forwarding no, I didn't realize that it said "no" instead of yes. Since the default is ...
2
votes
0answers
198 views

ssh X forwarding not working on computers outside LAN when ControlMaster is set to auto [closed]

I can connect to machines on my local LAN using ssh -X or ssh -Y and X forwarding works. However, when trying to connect to machines outside my LAN, X forwarding fails. I have narrowed down the ...
3
votes
1answer
414 views

Rsync over ssh tunnel - using gateway server

Environment: ---------- ---------- /| ------------ | Work | | Gateway| | | | cluster | |Station |--------------------------------| ...
8
votes
4answers
617 views

Failing to block brute force ssh with iptables

I'm trying to block (slow down) brute force attacks on my sshd server. I'm following this guide http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/ which basically says I need to ...
1
vote
1answer
146 views

Tunnel HTTP traffic using another machine via SSH

I have this situation: server 1: public ip x.x.x.x private ip 192.168.0.1 server 2: private ip 192.168.0.10 The server 1 can reach the internet with both interfaces: ping -i x.x.x.x ...
2
votes
0answers
935 views

How do I force ssh to use a second interface with higher metric?

I have a Crunchbang VM with two interfaces, eth0 and eth1, each of which connects to an OpenWRT VM (eth0 being 10.232.64.20 and eth1 being 10.232.65.20). I'm using Network Manager and DHCP. My ...
2
votes
3answers
275 views

What happens if I delete all user passwords?

I have a Fedora VPS with a root user that has no password. I login with SSH keys. I had another, less privileged account on that server, used for web administration. I've now deleted its password ...
2
votes
2answers
209 views

Simulate x-screen?

I'm working in a koding terminal running ubuntu 13.04, and I'm trying to run an application that requires an x-screen (even to run in terminal mode). I am unable to connect with x11 forwarding, and ...
1
vote
0answers
117 views

SSH to a machine that is getting it's network connection from an Android device(Google TV)

I have a Linux(Ubuntu) machine for my HTPC. It's running XBMC and I control it via my IR remote control. I don't have a (wired) keyboard to control it. It has Wifi adaptor but it's not installed. I ...
2
votes
1answer
169 views

Connection reset by peer using sshfs

I am using a fuse/sshfs mount which worked fine so far. Now I had to reinstall the server system and suddenly getting the classic read: Connection reset by peer error. I am using public key ...
3
votes
1answer
141 views

Intermittent ssh denial

The main server in my network (nothing less...) plays tricks with its ssh connectivity. It is a CentOS 6.4/64 (runs as KVM-based virtualization host with a dozen VMs on it). It receives its IP via ...
9
votes
3answers
996 views

Advice for managing SSH keys

What is the best practice you have found for managing lots of SSH keypairs? I use SSH to connect to several systems, both at home and at work. I currently have a fairly small, manageable collection ...
6
votes
3answers
882 views

How to add an ip range to known_hosts?

Many services (like GitHub) use a wide range of IPs, and obviously the same public key. How can I add an IP range (preferably in a single) to known_hosts file? For the GitHub example, it uses the ...
1
vote
1answer
45 views

Reach service on VM with private address

I have this configuration: source: https://www.lucidchart.com/publicSegments/view/5256a1e5-afb0-4c7a-96fa-35750a00527d/image.png Basically, I have to reach a service which is running on the virtual ...
1
vote
2answers
766 views

How to use `~/.ssh/config` setting for each server by `rsync`

I'm now using rsync with -e 'ssh -p 10022' option to specify the port. I have already ssh setting in ~/.ssh/config. Host myvps HostName example.com User ironsand Port 10022 Can I use this ...
0
votes
3answers
656 views

Script to login to ssh twice

I need to login through ssh twice with a script and can't get it to work. This is what I have in my script file: #!/usr/bin/expect set login "user" set addr "address1" set addr2 "address2" set pw ...
0
votes
4answers
187 views

How do I store long hostnames list for SSH quick usage?

I have an SSH access to a lot of servers. And all that hostnames (and sometimes usernames) are long and hard to remember. Also even if I tweak my Terminal to keep eternal bash history, the using of ...
1
vote
2answers
114 views

Can't ssh to a machine

All of a sudden, I couldn't ssh to a machine to which I used to ssh earlier. Consider I am ssh-ing from A to B. Output when I run ssh root@ip_addr_of_B I get: Permission denied ...
1
vote
2answers
944 views

SSH connection establishment too slow [duplicate]

I'm having issues while connecting to my Local Centos 6.3 VM with 500 MB ram. Below is the output of ssh -vvv localhost connection: OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading ...
2
votes
1answer
561 views

Mosh: Retain backscroll beyond terminal window height

I'm experimenting using Mosh instead of raw SSH for remote shell connections. So far I like it, but I've become used to being able to page-up or scroll through backscroll in my terminal window to see ...
1
vote
0answers
4k views

No route to host using ssh [closed]

I have a issue with remote server connection using ssh. I have a serverA on xxx.xxx.xxx.xx1 with default port 22. I have an another serverB on xxx.xxx.xxx.xx2 same default port22. Now I want to ...
4
votes
1answer
274 views

How to set up ssh server with VPN tunnel? (Policy routing for sshd service)

It's difficult to me to explain in words, so I made diagrams. In short, I want this to work: Basically I want to be able to connect from my laptop [A] to my desktop [B] via ssh, and run terminal ...
3
votes
1answer
254 views

Rsnapshot via SSH speed issue

I am trying to backup bunch of desktops running RedHat 6.4 (i86_64) LVM on the top of ext4 to our file server running RedHat using rsnapshot and ssh. I am on 1GbE. I am finding the speed of the first ...
3
votes
1answer
267 views

hanging ssh processes launched from a script

i am creating a few vms through a script. as a part of it, i am changing the names of the vms using ssh. for some reason when i run the below command for three vms it works and for the magic number ...
1
vote
1answer
73 views

How to “bond” sshd to only a given interface? [duplicate]

How can I limit sshd to only listen on given interface when using OpenBSD 5.3?
3
votes
6answers
115 views

Get indication of ssh command

I need to get indication whatever the ssh command succeeded or not without it leaving the connected server. I use this command: ssh -q user1@server1 "echo 2>&1" && echo SSH_OK || ...
0
votes
2answers
612 views

Script SFTP with password - HP-UX

I would like create a script in HP-UX to send in sftp with password. I have this command sftp -o PasswordAuthentication= but if I answer yes or no after, I have this issue "Host key verification ...
2
votes
1answer
163 views

SSH Connection into LAN without port forwarding?

I'm living inside a study union for the next few month. the organisation has its own network and gateways where the students are connected to the internet. problem: I don't have access to the routers ...
3
votes
2answers
116 views

running a program located on my computer on a server

There is a server I can SSH into , but I can't use up a lot of the HDD space on it. I want to run a program, but this program is quite large, so I can't just copy it to the server. Is there a way to ...
1
vote
1answer
773 views

stdin : is not in tty

I am trying to make backup from server1 to server2 by using below command in ssh [user1@server1 ~]$ mysqldump -u dbuser -p"dbpwd" --opt dbname \ | gzip -c ...
1
vote
1answer
73 views

Let Transmission running on the server, independently of SSH session [duplicate]

This question has been reworded, previous one was a duplicate of Execute remote commands, completely detaching from the ssh connection I want to access to a computer through SSH, run both Iceweasel ...
2
votes
1answer
2k views

Can i transfer files using ssh?

I am using PuTTY on Windows 7 to ssh to my school computer lab. Can I transfer files from my windows machine to my user on the school machines using ssh?
0
votes
2answers
219 views

debian prompt is broken

When I login via ssh or from the console this is what I see: Linux sensu.lbox.com 3.2.0-4-amd64 #1 SMP Debian 3.2.46-1+deb7u1 x86_64 The programs included with the Debian GNU/Linux system are free ...
3
votes
1answer
1k views

Have ssh resolve hostnames from config when using ProxyCommand and netcat mode

I'm attempting to set up some universal options for bouncing ssh connections. Here is my ~/.ssh/config file, abbreviated: Host *%via ProxyCommand ssh gateway -W $(echo %h | cut -d%% -f1) %p Host ...
7
votes
2answers
9k views

List all connected SSH sessions?

I just SSH'd into root, and then SSH'd again into root on the same machine. So I have two windows open both SSH'd into root on my remote machine. From the shell, how can I see a list of these two ...
4
votes
3answers
741 views

.ssh/config to start remote session in zsh

I would like to start a remote session without typing the following command ssh user@remoteserverip -t zsh I know that I can change the host names in the ~/.ssh/config to simply use something like ...
4
votes
1answer
65 views

TCP wrapper “except” option

I configured the /etc/hosts.allow at the machine 192.168.122.50 with the following option. sshd : ALL EXCEPT 192.168.122.1 and tried ssh root@192.168.122.50 from the machine 192.168.122.1 and I was ...
10
votes
4answers
6k 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 ...
1
vote
1answer
722 views

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just ...
1
vote
1answer
556 views

How to setup SVN server permissions properly?

I use Debian 7 and have Subversion installed. I can't figure out what permissions and owners to set to the repositories once I create them. I want to have 2 types of repositories: 1) svn/private/* ...
2
votes
4answers
449 views

Keep running program requiring X server after logging off of ssh session

I have a python script that periodically generates a png image, and puts it on a server that I can access through a browser. The image displays the progress of a job I am running on the server. I'm ...
3
votes
1answer
233 views

How can I issue parallel commands to remote nodes with different arguments?

I need to execute an application in parallel on multiple Ubuntu servers while supplying different arguments for different servers. I tried to google it, but could not get to the possible solution. I ...
0
votes
1answer
1k views

ssh - Could not open a connection to your authentication agent

Have tried everything I found in Google. Nothing seems to work. Here is what I've done. user@home-machine ~ $ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter file in which to ...
1
vote
3answers
5k views

SSH to a host and enter password with shell script [duplicate]

I want to create a file like this : sshTOhost : #!bin/bash ssh -D 1500 user@host #enter password (I don't know how) can any one help me?
3
votes
2answers
141 views

ssh_config: specify command to be executed on the remote machine upon login

This is an expansion of my earlier question. I need to run a locally-stored command (i.e. mount /home) on a remote machine upon ssh login. At the moment, I am using: ssh -t mymachine.example.com ...
2
votes
3answers
596 views

How to make RHEL look at access.conf for su -?

I use the file /etc/security/access.conf to dictate what users have access to the server: + : root : LOCAL + : user1 : ALL + : user2 : ALL + : user3 : ALL - : ALL : ALL This works fine for new SSH ...
1
vote
1answer
117 views

Is it possible to use a VMWare VDI as a proxy for SSH?

I'm currently working for a company with quite strict security measures. 90% of my work takes place on a Linux machine, but to access this machine I first have to connect to a VPN, access a Windows ...
1
vote
1answer
345 views

Dynamic port forwarding using socat

I'm trying to replicate the functionality of ssh -D <PORT> user@machineX to tunnel all my traffic from my current machine via machineX. I do not need the ssh shell open at all, I simply wish to ...
0
votes
3answers
446 views

Is there a central repository of SSH keys on a system? Does SSH keygen put the private key in that location?

I just generated a public and private key with ssh key gen. I uploaded the public key onto a gitlab (basically a clone of git hub) system for my university and got an email saying that I successfully ...
5
votes
1answer
130 views

hosts.allow: %u not working (log username)

I need to keep track of all SSH connections on my server. In my /etc/hosts.allow I have something like this: sshd: ALL : spawn ( echo "`date` from %u %a " >> /var/log/ssh/%d.log ) & where ...