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

learn more… | top users | synonyms

4
votes
1answer
801 views

How to “jail” a user account's network capabilities on Linux?

Linux box a is connected to a home DSL line with dynamic DNS registration, hosting a tmux session to which multiple clients connect in read-only mode over SSH. All users connect using the same ...
8
votes
3answers
2k views

GNU screen freezes trying to reattach

I have several long-running GNU screen sessions. I ssh to the box they're running on and run screen -d -r foo to detach them if they're connected anywhere else, and then attach them in my current ...
6
votes
1answer
3k views

How to safely resume an aptitude dist-upgrade after SSH timeout?

I started aptitude dist-upgrade over SSH on my local network. At some point the session timed out but the upgrade was not finished (it was left at one of those accept software agreement screens-- I ...
1
vote
1answer
848 views

ssh-agent not starting in OpenSuSE desktop

It seems that ssh-agent is not starting on my OpenSuSE system. When I run pgrep -fl ssh-agent, the result is blank. On my Linux Mint laptop, I get 1785 /usr/bin/ssh-agent /usr/bin/dbus-launch ...
1
vote
2answers
1k views

Have bash script wait for password

I want to write a little script which sets up a socks proxy via ssh and then starts a browser using that proxy. #!/bin/bash ssh -D 1234 user@host #& chromium-browser ...
72
votes
3answers
43k views

How does reverse SSH tunneling work?

As I understand this, firewalls (assuming default settings) deny all incoming traffic that has no prior corresponding outgoing traffic. Based on Reversing an ssh connection and SSH Tunneling Made ...
4
votes
2answers
806 views

Can't SSH via password to a Remote Server

I've successfully VPNed to my University server on a Fedora 17 Linux terminal. $ sudo openconnect -u UNIVERSITY_USERNAMEID sslvpn.nameofuniversity.edu [sudo] password for PCUSERNAME: Attempting to ...
7
votes
2answers
6k views

Why Bash unable to find command even if $PATH is specified properly?

I am specifying path to my command in the file /etc/profile: export PATH=$PATH:/usr/app/cpn/bin My command is located in: $ which ydisplay /usr/app/cpn/bin/ydisplay So, when I performing "echo ...
2
votes
2answers
144 views

SSH encryption security

If I log in to my server through ssh and copy files to my local computer can I be eavesdropped? How do I make sure nobody can intercept the data or even know what I am copying? Are there levels of ...
1
vote
1answer
220 views

Accessing ssh proxy from another host

I'm used to setup a ssh proxy in the localhost like this: ssh -fND 9999 server I have been using it for years for daily browsing. Now I want to use the same proxy in a Windows guest in the same ...
4
votes
1answer
2k views

SSH login as root fails, but I'm sure I entered the right password

What am I missing? I change the root password on a unix machine, then try to log in with that password. PasswordAuthentication is set to yes in sshd_config and the sshd daemon has been restarted. ...
4
votes
3answers
17k views

How to copy between two remote hosts using tar piped into SSH from remote server when behind a firewall?

I'd like to transfer a directory between two servers, but compress the directory on the remote host before transfer, and then uncompress to another host. I'm sure it's possible to pipe everything all ...
3
votes
0answers
472 views

Launching app over SSH with DISPLAY when user not logged in

After searching and searching without any luck I'm hoping someone here can enlighten me. I have a PC (Ubuntu with encrypted home dir). I wake this PC up from a shell script on my phone, the PC shows ...
2
votes
1answer
148 views

Share X11 with remote server where X11 are not installed

I need a GUI on a remote server to which I have an ssh connection. Is it possible to share my X11 window system with it given that there's no X11 installed on the server?
4
votes
1answer
5k views

How to configure pfsense to NAT servers?

How can I configure pfsense so it will NAT servers so they can be accessed outside of the company? I tried to play around with the NAT settings, but didn't get anywhere. I want to be able to access ...
3
votes
2answers
809 views

How can I get the GNU screen command to automatically start with every BusyBox ash session?

On an embedded device with BusyBox installed I want to set it up so that the gnu screen command is automatically started when any BusyBox session is started. I have seen that I can add the screen ...
1
vote
0answers
368 views

Launch X11vnc server on Ubuntu remote desktop through SSH

I have a Windows computer and I am currently connected to a Ubuntu 12.04 system through SSH using CRT on my Windows computer. I would like to know the commands that I need to run from my SSH session ...
5
votes
1answer
683 views

Avoiding duplicate entries in ~/.ssh/known_hosts

I have my DNS search path set to ".intranet", ie, /etc/resolv.conf contains: search intranet When I SSH to a host using a FQDN, like "mailserver.intranet", it adds an entry for ...
2
votes
2answers
277 views

Interesting Secure Copy Behavior

I'm not entirely sure where to ask this question, so if this is not the right place just let me know and I'll move it. Today I was trying to using recursive scp to copy a directory between two Linux ...
6
votes
2answers
24k views

Server does not accept public key for ssh login without password [duplicate]

Possible Duplicate: Why am I still getting a password prompt with ssh with public key authentication? I have ssh access to two sever. One old one and one new one. For the old one I use the ...
1
vote
1answer
7k views

Check if SSH is enabled or Disabled in Solaris 11

How can I check to see if SSH is enabled on Solaris 11? I have tried typing ssh in the terminal, and it came back with a list of options, which none of them made sense to me. All I want to know is if ...
2
votes
3answers
1k views

Limited SSH user on Ubuntu 12

I'm running Minecraft on a server. How can I give my friend SSH access just to the minecraft folder (a root folder), the screen command, and some ports?
6
votes
3answers
17k views

ssh input from text file

These two question is driving me crazy and I don't have good expertise of ssh. (but I suspect it is to do with redirection only) The questions are, You want to pass multiple lines of input from a ...
2
votes
2answers
5k views

Undo `mv` command? [duplicate]

Possible Duplicate: Moved bin and other folders! How to get them back? Hi I'm in desperate need of help. I'm quite new to linux so please bear with my stupidity! I entered the following ...
4
votes
3answers
674 views

from a sparse file to a block device over the network

If I have a sparse file representing a block device, then how can I efficiently restore the file over a network? Ideally, I'd use rsync -S host:file /dev/sdb, but rsync won't write to block devices. ...
3
votes
1answer
2k views

Start network service at boot time on CentOS

I've recently reinstalled CentOS onto a computer of mine. I have OpenSSH Server on it now, as did I before I reinstalled the operating system. Here's the difference: Before, SSH started without even ...
6
votes
1answer
924 views

Is it safe to use /bin/cat as shell for a restricted user?

I need to remontely log on to few peoples machines to do maintanance tasks, but sometimes the machines can be behind firewalls or NAT's. The way I have been doing it is to give the user advice on how ...
1
vote
1answer
96 views

Initiate server script from laptop

I have a server that i can ssh into from my laptop. I want to be able to run a script on my laptop that sends a signal to the server which makes the server initiate a given script there. How do I do ...
2
votes
1answer
347 views

password problem when feeding a remote file into diff

When I want to compare a local file with a remote file, any of these usually works: $ ssh remote cat file | diff file - $ diff file <(ssh remote cat file) However, sometimes (especially when the ...
1
vote
1answer
900 views

GNOME-Terminal: Create new terminal tab on remote machine

Is there a way to open a new terminal tab in GNOME-Terminal when working on a remote machine that is connected via ssh?
3
votes
1answer
1k views

TCP forwarding over SSH using non-root account

I've setup TCP forwarding over SSH using the following command: ssh -N -L 1234:10.0.2.2:1234 root@10.0.2.1 This works no problem. So I decided to create a non-root account user1 on 10.0.2.1 to do ...
3
votes
2answers
1k views

How to Add rules to IP Filter (Firewall in SCO)

I need to add a rule (allow any to any port 22) to my firewall, so that I can ssh remotely into my machine. I have had a look in the SCO OSR600 Documentation and I cannot find anything in there that ...
5
votes
1answer
324 views

Automated ssh login with passphrase?

Logging onto a machine over ssh typically requires a password to be entered before access is granted. Alternatively, a key/certificate (without a passphrase) can be installed onto the remote machine ...
1
vote
1answer
629 views

complicated mpd/ssh setup howto?

I've recently acquired a raspberry pi and plan to use it as a home-computer and web/file-server. The setup I have a pretty big (3TB) HD hooked up to it that has all my music on it. I also have a ...
6
votes
2answers
6k views

How to properly run “top” command through SSH?

I have to run top command on one computer being on another. My targeted PC has IP 192.168.0.81 I was trying to do it: ssh 192.168.0.81 top But I got this result: top: tcgetattr() failed: Invalid ...
4
votes
3answers
6k views

Execute remote script with local parameter value

How can I automatize this task? 1) You are at A. 2) You ssh into B. 3) You run a script at B, that needs a parameter known at A. First, I thought perhaps I could send the value when I opened the ...
6
votes
3answers
3k views

Remote-Accesible Live-Distribution (aka Live CD)

I'm looking for a live distribution (Live CD or the likes) which comes - per default - with sshd running at startup. I want to check the components of my laptop whose graphics has died ...
6
votes
3answers
584 views

Send an email any time an SSH key is used

I have about 30 nearly-identical CentOS 6 servers that I need to be able to push out updated config files automatically using an rsa key to log in as root. Usually this will just be rsync, but ...
6
votes
1answer
394 views

SSH session pauses mid datastream; resumes with a keypress

I've had this problem occur at random, intermittently, across boxes at multiple companies, multiple distros, and multiple kernel revs. I think that I'm just cursed. What happens is that I'll have a ...
2
votes
1answer
481 views

remote execution via ssh doesn't follow links?

ssh server ls /var/lib/edumate/backup/weekly/*DBB* returns one file /var/lib/edumate/backup/weekly/DBB.0.db2inst1.NODE0000.CATN0000.20120610020013.001 but ssh server ls /data/backup/weekly/*DBB* ...
9
votes
1answer
1k views

Best Practices for SSH, tmux & GnuPG Agent

I'm attempting to consolidate my encryption software to GnuPG, and I'm running into a confusing problem. My primary unit is a headless server, and I exclusively work in tmux. There is no X session, ...
12
votes
2answers
32k views

SSH key-based authentication: known_hosts vs authorized_keys

I read about setting up ssh keys in Linux and have some questions. Correct me if I'm wrong… Let's say host tr-lgto wants to connect to host tr-mdm using ssh. If we want to be sure that it's the real ...
2
votes
1answer
765 views

Remote SSH user always gets “connection closed”

I've tried service sshd restart, I've added sshd:all:allow to my /etc/allow.hosts and the remote user tried rm ~/.ssh/known_hosts. I also checked the logs: cat /var/logs/secure | grep ssh and it says ...
0
votes
1answer
465 views

How do I escape a dot character for an rsync command? [closed]

I'm trying to do... ssh -av -e deploy@domain.com:/var/www/domain.com /Users/user/workspace/domain But it's outputting this (I presume because of the period character): OpenSSH_5.6p1, OpenSSL ...
3
votes
1answer
1k views

Giving SSH users read-only access to a directory

I'm running Fedora 17 and I want to give several users access to files on my secondary hard drives on /run/media/haukur/. This is what I initially did: chmod -R 755 /run/media/ But every time I ...
8
votes
2answers
2k views

How do I background an SSH session? [duplicate]

Possible Duplicate: How can I break away from an SSH session that has crashed? I have started an SSH session on the command line, but now I want to get back to my local command line. For ...
7
votes
2answers
4k views

How can I set up SSH on Linux to log in password-less?

My Raspberry Pi is running the default Debian image and has SSH enabled. I log into my Pi as follows: ssh pi@<IP-address-of-my-Pi> I have to enter my password every time. Can I somehow make ...
3
votes
2answers
6k views

SSH + Sudo + Expect in Bash script: Run command with sudo in remote machine

I am trying to automate the deploy of some .deb packages with an script. I want to execute sudo dpkg -i $myDeb.deb in a list of remote machines I can access with ssh. I've tried to automate the ...
1
vote
1answer
813 views

Start SSH session in some other directory than their home directory and lock them there

I've set up a SSH server which I've let some friends log into, both via SSH and FileZilla. I put a symbolic link to two hard drives in their home directories so that they could access some files. This ...
5
votes
3answers
1k views

Is it possible to download extremely large files intelligently or in parts via SSH from Linux to Windows?

I have a ~35 GB file on a remote Linux Ubuntu server. Locally, I am running Windows XP, so I am connecting to the remote Linux server using SSH (specifically, I am using a Windows program called SSH ...