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

learn more… | top users | synonyms

1
vote
2answers
2k views

Is there any way to get control over a terminal by ssh with no (screen) [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? Let's say I'm install applications directly on to a Linux box. May I go to another machine ...
3
votes
1answer
633 views

wait for autossh connection to complete

I'm trying to create a script that runs a few commands that take a long time to execute and require a constant connection, but autossh user@server wait $! #or wait ${!} commandA commandB doesn't ...
8
votes
2answers
12k views

How to configure SVN/SSH with SSH on non standard port?

I have configured SSH to be on port 20000. When I try: svn co svn+ssh://server.com:20000/home/svn/proj1 proj1 --username jm I get svn: To better debug SSH connection problems, remove the -q ...
1
vote
1answer
473 views

X11 Forwarding Problem Netscape

I have the following problem. A working verbose x11 forward request looks like this: remote server release: Red Hat Linux release 6.2 (Zoot) sh-4.1$ ssh -1 -vvv -l username -o "ForwardX11 yes" ...
6
votes
2answers
1k views

Giving some users only SSH and shell access with limited resource usage

I'm trying to make a user that can access my server through SSH and allow it to have a shell, limited to using only, say screen and irssi. And it shouldn't it be able to see other directories except ...
11
votes
2answers
17k views

How to edit authorized_keys?

What is the best method for editing the /root/.ssh/authorized_keys file? I mean if I need to append a new key to my authorized_keys file, than what are the best methods to do that?
0
votes
3answers
658 views

wrapper command for sshd_config?

Is there a command to set settings in sshd_config, instead of manually editing the file? I would prefer it to do this way, because it's easier to automate. Otherwise I'd have to grep config with my ...
14
votes
3answers
9k views

Encrypting file only with SSH -priv-key?

Suppose I want to encrypt a file so that only I can read it, by knowing my SSH private key password. I am sharing a repo where I want to encrypt or obfuscate sensitive information. By that, I mean ...
1
vote
1answer
481 views

SVN checkout under a different user name

When I ssh into my server I log in under root or my user on the system. However, when I checkout from my svn repos then are then owned by either root or my user, and therefore all files deployed to ...
6
votes
2answers
1k views

How to speed up X over fast connection ? (especially over ssh)

What are recommendations on speeding up X applications over local fast (gigabit) connections? (similar question for slow connections) Currently I'm running over ssh -Y, which is fine, but I wonder if ...
3
votes
2answers
3k views

How to limit number off ssh login attempts per time interval

I am trying to limit number of ssh login attempts per time period. How might I do that? I have something like (in shorewall's rules) #ACTION SOURCE DEST PROTO DEST ...
3
votes
3answers
418 views

Install pdflatex via SSH on Amazon EC2 instance

I need to install pdflatex on my Linux powered machine (Amazon EC2 instance, didn't decided yet which distribution would be the best so also feel free to give a hint) because I want to connect ...
9
votes
3answers
9k views

How can I track who SSH'es into my linux machine?

I'm running Ubuntu 10.04. Is there a way I can get a daily report of who has logged onto the box, what time, and even - this may be asking too much - a report of the commands they used? This is a ...
2
votes
5answers
1k views

full access to remote computer without remote static IP

How can I access to remote computer that the remote computer is in a local network? I worked with reverse ssh : http://www.vdomck.org/2005/11/reversing-ssh-connection.html I don't want just SSH but I ...
2
votes
1answer
859 views

Deny external SSH access to a user

Is it possible to deny access to a user (in my case www-data) from outside the network? Or possibly deny this: ssh www-data@example.com But allow this if already logged in: su www-data
5
votes
1answer
700 views

How to create a SSH tunnel over 2 servers?

I have 2 servers, A and B. I want to create a tunnel from my system to server B but I have some limits to do this. So I have to first tunnel to server A and from server A to server B. My goal is to ...
3
votes
1answer
667 views

ssh prompts for password despite .ssh/authorized_keys

I issued ssh username@db2workgoup -n "echocat ~/.ssh/id_dsa.pub>> ~/.ssh/authorized_keys" and then checked that the key was stored in authorized_keys file. But ssh is still asking for the ...
3
votes
2answers
643 views

If you SSH into another computer, how to access other X displays?

This is a query based on personal use. A troll in our local network had downloaded Crikey, the key-event simulator. He used it to simulate events on other computers, leading to unwanted things. For ...
3
votes
2answers
2k views

Fix 'Enter passphrase for key: '

My SSH private key would automatically be unlocked earlier because I guess it was configured with Seahorse. It would just ask for my password and handle things on its own. For some weird reason, it ...
6
votes
2answers
2k views

XAUTHORITY environ variable set repeatedly on every login

I am running a Suse Linux 11.04 system. My problem is that when I do a fresh login into a shell as root, a new Xauthority file of the form xauth***** gets created in the /root/ directory. Upon exiting ...
3
votes
2answers
3k views

Open GNOME session remotely through SSH

I have a laptop connected wirelessly to my home network. I'm planning on installing a CentOS server on my network, used for a web server, a file server, and experimentation. I want to access it from ...
4
votes
2answers
2k views

How to connect two computers via internet with ssh?

I want to connect another computer via internet that doesn't have a public IP. Is there any away to do this?
1
vote
2answers
4k views

How can I access my work computer via SSH (Teamviewer works)?

I have a Ubuntu 11.10 system both at home and at work. I would like to connect to my work computer via SSH but it is inaccessible (even ping does not work). Teamviewer however does work, and I ...
4
votes
1answer
798 views

How do I prevent ssh remote login from breaking dbus?

I'm running openSUSE 11.3 on my workstation at work under KDE, I don't have root access to it. The default shell has been set to tcsh. When I am logged in at my workstation and log in remotely from my ...
6
votes
3answers
1k views

Is there any disadvantage in using SSHFS instead of SSH alone?

I find it easier to use SSHFS to mount a remote file system on my local computer instead of plainly SSH'ing into the remote computer. This saves me from using all the complicated scp commmands for ...
6
votes
3answers
2k views

Logged on via ssh-key, can I reset my account password?

I am logged in on a server via sshkey (ssh -i /home/me/.ssh/ssh-key me@server). I got sudo rights on that server from the admin, but I can't exercise them, since I forgot my actual Unix password (or ...
1
vote
4answers
4k views

how to find out the ip of an ssh HostName

Is there a simple way to retrieve the IP of a HostName from an ssh config on the command line? Many times I have to use scp and would like to connect to a machine, but I remember only the HostName.
2
votes
2answers
4k views

killing a process on a remote machine when the machine is stuck

I started a very resources-consuming process on a remote server via ssh. It is an optimization problem run in MATLAB. It takes full memory and CPU. In fact, I am not even able to ssh to the machine, ...
5
votes
1answer
143 views

How can I log in my laptop with public key authentication?

Stemming from my recent aversion to passwords (this thread convinced me), I'm wondering if there's a way to login locally (on my laptop running Crunchbang/Debian) by using public-key encryption. I ...
5
votes
2answers
337 views

Provide user name when using vim with scp

I was reading about SSH here http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html and found that you can use vim to directly modify a file on a remote server that you can ssh into. ...
5
votes
0answers
210 views

Copy file over existing SSH session? [duplicate]

Possible Duplicate: SSH easily copy file to local system Let's give the following example: I've connected to ssh user@myserver.com. I need to copy a local file over to the remote ...
1
vote
2answers
1k views

Running any kind of login script when sh is linked to bash

My problem: My web host offers ssh to their shared server. I want to set up a couple of aliases and such, so I'm trying to get a login script of any flavor to run. If my shell was plain bash, I would ...
6
votes
2answers
2k views

working with filenames in a different encoding over ssh

I'm ssh'ing to a remote system where a different encoding for the filenames (and for the users' locales) has been used. And this causes some problems. Problems solved by matching the locale settings ...
4
votes
1answer
552 views

Only use mtime comparison with rsync?

Is it possible to sync files via rsync and let rsync only compare mtime informations? Or is there another tool for this job? That means that such a tool only copies src to destination if the src is ...
2
votes
1answer
426 views

change sftp to ftp

I recently installed a CentOS machine for a couple of game servers. I followed some tutorials on the web for that, because I'm a linux noob. But. I want to sftp to store data on the server but it is ...
17
votes
3answers
1k views

ssh via multiple hosts

To get to my machine in my office, at the moment I am doing this: me@home:~$ ssh unix.university.com me@unix:~$ ssh unix.department.univeristy.com me@unix.department:~$ ssh ...
3
votes
5answers
1k views

Configure permissions

I'm sharing a git repository with a friend over SSH. He pushes from and pulls to his git repository using my machine's SSH server, where the shared git repository is. Problem is that when he pushes a ...
3
votes
3answers
492 views

How to install openssh in Crux Linux

In Crux Linux I already have installed SSH but when I use ssh-keygen, and try to use the command: ssh localhost to test SSH I get this error: # ssh localhost ssh: connect to host localhost port ...
2
votes
2answers
931 views

Remotely control an xorg session [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I have a computer running debian, connected to my TV, running an xorg session. What I want ...
1
vote
1answer
313 views

Start up ssh connection on startup

I need to start a ssh connection to a proxy in order to have access to some resources. I have written the shell script and managed to run the script successfully. However, I found it very ...
16
votes
3answers
4k views

How to close (kill) ssh ControlMaster connections manually

With the following .ssh/config configuration: ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r ControlPersist 4h How to close the persisting connection before the 4 hours? I know you can make ...
0
votes
2answers
1k views

SSH “command not found” for Zsh

Im using Zsh on the client and server. When I use ssh to run a command on the remote server it can not find the binary: ssh gt "cd /home/****/app/staging && bundle exec rake db:migrate ...
4
votes
1answer
1k views

Can sshd restrict client tunnel endpoints to localhost?

Normally an ssh client can request TCP forwarding using the -L command line option. The server can disable this completely using AllowTcpForwarding no. If enabled, the client can request to connect ...
25
votes
5answers
22k views

How can I tell what version of linux I'm using?

Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the ...
1
vote
1answer
1k views

CentOS 5.5 SSH with Key for non ROOT user

I tried pretty much everything I could to make this work. I spent literally 6 hours on research and nothing helps to remove "Server refused our key" error. My username I tried to make is "Testuser" ...
1
vote
4answers
288 views

Access a linux machine from a windows machine

I have two laptops, one is installed with Ubuntu 10.04, the other one is installed with Windows XP. The Ubuntu laptop is located in one place with internet connection while the windows laptop is in ...
5
votes
1answer
889 views

SSH Public key comment separator

I've created a SSH authentication key (with ssh-keygen) in two different servers, both with a useful comment, but the public key of one server has == between the key and the comment, while the other ...
3
votes
1answer
1k views

How to enable nagios user created by yum to use check_by_ssh

I've used yum install nagios on an Amazon Linux instance, and it created a nagios user with shell /sbin/nologin and homedir /var/spool/nagios. This is the behaviour on EC2. I want to use check_by_ssh ...
3
votes
3answers
23k views

How to ssh to remote server using a private key?

I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key). I don't know how to do it over unix. But what I did ...
0
votes
3answers
1k views

Read first line of a command's output. Command connects me to a remote terminal

Part 1 Say I have a command my_command that outputs multiple lines. I would like to capture the first line of my_command's output as soon as it's ready in a script, while keeping my_command ...