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

learn more… | top users | synonyms

3
votes
1answer
61 views

Can't change to Korean-named directory on my debian server

I made a rsync backup of some directories from a macbook laptop to a debian server. Some of these have korean characters (Hangeul) in their names. After fixing my server's locale, it displays well ...
2
votes
3answers
697 views

Monitor via SSH and execute local script upon change detection

I have an environment where I can SSH into a Linux machine via Cygwin, but not the other way around due to a security policy out of my control. I need to automate tasks on the Windows machine but ...
2
votes
1answer
748 views

accessing stdin/stdout of a process started in another tty

I logged in to my linux physically(say tty1) and started a process that watches stdin for commands and has some stdout-put. How can I access/use this process from a SSH session?
3
votes
2answers
1k views

how to include or add /dev with tar --one-file-system

I'm running tar on a complete remote filesystem using ssh -n <hostname> 'sudo tar -cpvzf - --one-file-system /' | cat > Bak.tar.gz This gave me a tarball. I tried importing this tarball ...
5
votes
2answers
612 views

Unable to login via ssh after several months [closed]

I have a Dell Poweredge running Ubuntu 13.04 in my office to serve up an interal web-app address system. It has been at least a 2 months possibly 3 since my last login. Everything is running great, ...
1
vote
1answer
210 views

KDE apps look ugly over ssh

I am on a Kubuntu machine and sometimes reach another Xubuntu machine over ssh, and launch some KDE apps from there, these apps look really weird while the GTK apps look normal. Here are some ...
1
vote
1answer
2k views

ssh with sudo doesn't start services

I want to run command with sudo through ssh without disabling "requiretty" sudo option. According to /etc/sudoers: # # Disable "ssh hostname sudo <cmd>", because it will show the password in ...
4
votes
1answer
840 views

How can I stop ssh from trying to create ~/.ssh?

I'm working on an rsync-based backup for a FreeNAS system. Part of the backup process involves logging into the remote system that serves as the backup storage. Whenever I do that, I get the message ...
2
votes
2answers
170 views

Set default login path in ssh config

I use the following config in my ssh config file: Host host1 Hostname host1 User root ForwardAgent yes Port 22 ProxyCommand ssh -q user@host2 nc %h %p Is there a way to jump to a ...
1
vote
1answer
231 views

failure in connecting to my server through ssh

My goal: I want to be able to ssh to my workstation from external client. My workstation(in the following also referred as server) is on a lan. Its ip address on this lan is obviously different from ...
2
votes
1answer
214 views

`git remote add` to home dir by `~` expression

I created git bare repository in my home directory like ~/git-repos/foo.git. To add a remote repository I typed like git remote add origin ssh://username@hostname:10022~/git-repo/foo.git. But it ...
4
votes
1answer
3k views

What's the difference between SSH and Squid when using them as proxies?

I've been using Squid on one of my server as a transparent proxy for a very long time (years). Basically from the client I was creating an SSH tunnel between my client and the ssh + Squid server ...
1
vote
2answers
923 views

Restarting network service for a local VM via SSH

During the course of practicing switching my local VM from static IP to DHCP and vice versa via system-config-network, I decided I didn't like having to access the VM's console through virt-manager ...
11
votes
2answers
9k views

How do I sftp to a server if the username contains @ symbol

I have to sftp to a server to a specific port but the username contains the @ symbol. suppose the user is "user@domain.com" and the ftp server is just "domain.com" I will end with sftp -oPort:8777 ...
4
votes
2answers
4k views

Disable ssh banner for specific users or ips

I've enabled the banner that appears before the password prompt by setting it it sshd_config. However certain users (especially me) really don't need to see the banner (it also screws up a lot of ...
5
votes
1answer
1k views

Idle terminal safe character

I'm using iTerm2 on a Mac to do Linux work. In order to avoid losing terminal connections, I turned on "When idle, sent Ascii code". The default is 0. This works like a charm to keep connections ...
3
votes
3answers
2k views

Setting hostname variable right after SSH login

I have set of some (third-party) shell scripts, which are supposed to connect to remote host and start some daemons (hadoop, if that matters). These scripts rely heavily on hostname in order to ...
3
votes
3answers
1k views

How to detect IP of given device in same network

I have a very typical situation in which I want to connect an (android) phone to a linux notebook in the same (wifi) network using ssh. The IP's are assigned by DHCP so I know only the one of the ...
1
vote
0answers
276 views

How to monitor user who using dropbear ssh tunneling?

I was used OpenSSH in my debian server. I can see who is using ssh tunneling using either nethogs or top command. When i change from openssh to dropbear i cant monitor user again. In nethogs or top ...
3
votes
2answers
286 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 "no"...
3
votes
0answers
432 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
766 views

Rsync over ssh tunnel - using gateway server

Environment: ---------- ---------- /| ------------ | Work | | Gateway| | | | cluster | |Station |--------------------------------| |...
9
votes
5answers
1k 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
481 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 www....
4
votes
0answers
5k 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
1k 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 too....
5
votes
2answers
2k 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 I'...
1
vote
0answers
277 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 ...
5
votes
1answer
7k 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
568 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 ...
12
votes
4answers
3k 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 ...
7
votes
4answers
3k 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
50 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 ...
5
votes
3answers
5k 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
3k 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 "...
1
vote
4answers
477 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
3answers
772 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 (publickey,...
2
votes
2answers
4k 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 ...
5
votes
1answer
3k views

Mosh: Retain backscroll beyond terminal window height [duplicate]

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 ...
4
votes
0answers
31k 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
1k 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
702 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
621 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
181 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
177 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
4answers
2k 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
560 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
370 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
2k 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
177 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 ...