Secure Shell or SSH is a network protocol that allows data to be exchanged using a secure channel between two networked devices.

learn more… | top users | synonyms

11
votes
2answers
14k views

How to keep program running after SSH disconnection? [duplicate]

Possible Duplicates: Keep a program running after closing a console, after the program has started How can I use ssh to run a command on a remote Unix machine and exit before the command ...
10
votes
1answer
8k views

How can I set environment variables for a remote rsync process?

When I use rsync to copy files from one computer to another, an rsync process is started on both ends. However, on the remote end, shell initialization files are apparently not read, so I cannot set ...
9
votes
1answer
7k views

How to mount remote SSHFS via intermediate machine? Tunneling?

I would like to mount a remote file system (A) using SSHFS, but sometimes I have IP address, access from which is not allowed. So my plan is to access it via another machine (B) in that network. Do I ...
5
votes
2answers
12k views

Can I automatically login to ssh using passwords from OS X keychain?

I need to login to an ssh server which doesn't support key based authentication. And I don't want to type the passwords every time. I am using OS X Lion (10.7.2). I have added the passwords to the OS ...
5
votes
3answers
2k views

transferring files over two-hop SSH session

I have a Linux box at work that I often log in to from home. The Linux box is on an internal network, but there's a box that spans both networks, so I can log in like so: ssh -tA ...
2
votes
4answers
707 views

How to give computer URL to access over the internet?

I would like to be able to SSH into my macs over the internet using a DNS name like my-imac@example.com or something similar instead of having to enter an IP address every time. How can I assign ...
2
votes
3answers
2k views

Can I have ssh without scp also?

A project I'm on requires I upload some files to a vendor's remote server. I requested a secure connection, and suggested scp or https or sftp. In response, they stated they could grant me ssh ...
15
votes
2answers
4k views

What happens to running processes when I lose a remote connection to a *nix box?

I occasionally lose my remote SSH connection to my VPS. I use screen for long-running processes, but am wondering what happens to the processes I had running aside from those run within a screen ...
7
votes
3answers
8k views

How can I create a user with read-only access to all files? (ie root without writing permissions)

For backing up my server, I would like to remotely access it via SSH. To minimize all risks, it want to user a user who only has read access, but to all files, just like root. However, he shouldn't ...
5
votes
3answers
6k views

Limit every user to his own home folder only

i have a linux server which users connect to with SSH. my users only upload and download content from their /home folder. Basicly, I want them to be limited to see and use only their home folder. I ...
4
votes
2answers
1k views

SSH ProxyCommand on SSH server side

Using the SSH ProxyCommand directive in the client ~/.ssh/config file it is possible to connect to a SSH server through a different SSH server acting as a jump host. Is there a similar configuration ...
4
votes
2answers
16k views

pam_unix(cron:session): session opened for user root by (uid=0)

In my SSH log /var/log/auth.log I have the following 2 rows (which are repeated every hour): ... Jan 22 03:28:01 mam CRON[15934]: pam_unix(cron:session): session opened for user root by ...
8
votes
4answers
6k views

User specific /etc/hosts files?

Is it possible to have a user specific hosts file, or some other way to map a ip address to a name on a Linux system. I want to be able to ssh to my local machine from an on campus lab without having ...
7
votes
1answer
2k views

non-interactive ssh sudo… prompts for the password in plain text

I'm running some non-interactive ssh commands. The ssh authentication is taken care of fine through the ssh agent, but if I run a command that requires sudo then the password prompt in my terminal is ...
6
votes
3answers
2k views

SSH from public network?

Is it safe to SSH to a machine while I'm using unsecure wifi network in public places? Machine would also be placed behind a router.
5
votes
5answers
3k views

Must I sftp to an intermediate server?

I can't sftp directly into a particular host. To move a file from my home machine to the host, I must sftp a file to an intermediate host; ssh into the intermediate host; and sftp the file to the ...
4
votes
2answers
17k views

Close SSH connection

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.
4
votes
2answers
3k views

Set current working directory on ssh

I am trying to ssh from one machine to another within a Python script (Nautilus script). It works with the following: ssh -t user@server "cd /home/some/dir ; csh" However I don't like the idea of ...
4
votes
4answers
600 views

Problem with shared ssh keys

Following the process I've used in other environments, I've tried setting-up shared keys between my Mac and my CentOS 4 webserver. I've seen the same problem with my older Ubuntu 7.10 workstation ...
3
votes
1answer
816 views

ssh-agent key timeout with screen or tmux on bastion host

Normally I have ssh-agent running, I ssh to my bastion host then open a tmux session and connect to other boxes through that. Key forwarding works for any sessions that I open from that point ...
2
votes
3answers
5k views

Can gedit on mac be used to edit files over ssh?

I use a linux machine at work and a mac at home. I can ssh from my machine at home to my work machine. But the only editor that I have access to on the command line then is vi, which I don't like. ...
1
vote
1answer
3k views

Cannot successfully configure OpenSSH via CYGWIN in Windows 2008

I need help configuring OpenSSH on Win2008 via CYGWIN! THANKS in advance! I am trying to configure an OpenSSH server on Windows Server 2008 Datacenter via CYGWIN. I have installed and configured ...
1
vote
1answer
2k views

Mount network drives over ssh on Windows [duplicate]

Possible Duplicate: sshfs equivalent for windows? There is a remote filesystem I can reach through ssh. On Linux, there are several ways of dealing with it. I like sshfs, because with it I ...
17
votes
2answers
2k views

If I typo my username when ssh-ing, is there a way to go back and change it?

When ssh-ing using putty, I sometimes mistype my username, and hit Enter before I realise my mistake. Once prompted for a password, is there a way to go back and re-enter my username rather than ...
7
votes
1answer
3k views

Using the IdentityFile directive in ssh_config when AgentForwarding is in use

Is it possible to specify forwarded keys using the IdentityFile directive in .ssh/config? I ran into this quirk when trying to deploy some code via Capistrano/GIT on our production server. Both my ...
5
votes
2answers
902 views

Capturing remote output locally in Mac Terminal

I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and ...
5
votes
1answer
464 views

How to tunnel Windows Remote Dektop through two machines

I have the following situation - I actually made this little diagram for you: Which commands do I need to issue where in order to be able to remote access the Windows XP machine "B"? I know that it ...
3
votes
1answer
2k views

How do I change my default shell on a remote server?

I tried changing it the way recommended in How do i change my default shell from bash to zsh?, as shown below: chsh -s $(which zsh) but that gave me an error. The system asks me to use ypchsh ...
3
votes
4answers
594 views

When I ssh into a ubuntu machine, what kind of shell am I using

I keep reading about interactive, non-interactive, login, and non-login shells. (This is in the context of which of the .bash* files is read). I don't understand what each type of shell is, so let's ...
3
votes
3answers
898 views

Why is it a lot faster to call rm on a directory than deleting a folder from the GUI (Linux) over SSH

Out of curiosity, why is it a lot faster to delete a folder / folders in Linux (I'm using Ubuntu) over SSH by calling rm -rf somefolder than deleting the folder from the GUI (right-click then "Move to ...
3
votes
2answers
364 views

How to reload an SSH session state?

How do you save your current SSH state on a remote machine and then recall that state at a later point? I have seen it done but not sure of the software involved.
3
votes
4answers
392 views

Access Windows box from Linux

how can I access Windows box from Linux both GUI, or non GUI? opposite of something like VNC or SSH.
3
votes
1answer
215 views

Agent Forwarding not working

I have a machine (lets call it MachineB) that I create an ssh tunnel to, so I can then ssh into the rest of the hosts in the cluster. AllowAgentForwarding is enabled on MachineB's sshd_config and ...
2
votes
2answers
47 views

Will a query which may take hours to execute keep executing on remote server if I close the connection after executing the command?

If I connect to a remote database server via ssh, start mysql client and execute a query which may take a couple of hours to execute, then close the connection, will the query continue to execute ...
2
votes
1answer
1k views

OS X Terminal Ignoring SOCKS Proxy Setup

Previously I've used an SSH tunnel: ssh -D 1234 user@remoteHost As a system wide proxy in OS X by going to System Preferences -> Network -> Advanced -> Proxies -> Tick SOCKS Proxy and enter ...
2
votes
4answers
3k views

SSH authentification with public key fails

I have my id_rsa.pub key under my /home/user/.ssh. I carefully copied that key and paste my key to respository Git account. While trying to connect from my local system to my git respository, I got ...
2
votes
3answers
6k views

ssh - no route to host

I have 3 machines (A, B and C) behind WLAN Router. From B i can make ssh to A and from A to B also. Ssh between C and A is also working (both destination, C->A and A->C). But when i try to connect B ...
1
vote
1answer
2k views

Ubuntu X11: Is it possible to open an X application in another users session

Is it possible to somehow open an x application on another users display? Say that i have user A who is logged on to the ubuntu desktop, and user B who is accessing the ubuntu machine via SSH. I ...
1
vote
3answers
17k views

Can't connect with putty to a Linux server

I can't connect with Putty to a Linux box. In the putty log I only get 3 lines and the last line is "Server unexpectedly closed network connection". FTP and ping to the Linux box works. Putty is ...
1
vote
3answers
772 views

Delete Files based on year from SSH

I'm in a putty session and would like to delete files from a directory which were created in the year 2009. Please could you give me the exact command?
1
vote
8answers
1k views

How to transfer files when given two SSH accounts?

I need to set up file transfer for which I've received the following access info. But I'm not sure how to connect, having hardly used SSH before. The instructions I got are: First: ssh ...
0
votes
0answers
55 views

Automate Interactive method of authentication for file transfer

Interactive method of authentication There is a server A and Server B Server A is the File Transfer server It has the files stored in it and we issue command scp admin@IP of REMOTE ...
0
votes
2answers
941 views

using history command with ssh and getting output with time stamps

Basically i want to get a record of all commands executed on my ssh server, with their times. The codes i have tried are : ssh user@ip 'export HISTFILE=~/.bash_history; set -o history; history' I ...
0
votes
2answers
707 views

Is there a (free) way to set up remote desktop sharing without configuring the router?

I want to be able to access a linux machine at home from anywhere. I understand just enough about routers that I normally need some static ip address. I have read about DynDNS, and honestly do not ...
0
votes
4answers
1k views

Can I create a configuration file for a shell script?

Is it possible to create a .sh shell or .command file with a configuration file? I need to backup websites via Terminal and be able to put some data to configuration files, and have the shell execute ...
0
votes
1answer
999 views

Tweaking SNR margin without telnet

I need to tweak my router's SNR margin. I know it can be done by telnet but my router's telnet and ssh are disabled. And I cannot find a way to enable telnet ( How can I enable Telnet on a router ) ...
0
votes
1answer
524 views

Ignore known-hosts security in SSH for some addresses

I have a router with a lot of computers on it. It has DHCP, so they are assigned IP addresses by the time they log in. Because their IPs are shuffled every day, I get a lot of WARNING: REMOTE ...
0
votes
1answer
1k views

SSH doesn't work on Ubuntu

I am trying to connect to my webserver via ssh but I can't. When I insert the password nothing happens. This is what I see: # ssh username@username.example.com username@username.example.com's ...
27
votes
5answers
11k views

Can you specify git-shell in .ssh/authorized_keys to restrict access to only git commands via ssh?

I'd like to be able to use a ssh key for authentication, but still restrict the commands that can be executed over the ssh tunnel. With Subversion, I've achieved this by using a .ssh/authorized_keys ...
14
votes
2answers
22k views

Extra configuration required for ssh-agent forwarding?

This guide does a great job explaining how ssh-agent works across multiple systems. I'd like to get forwarding set up as it is in the last set of diagrams, but I'm having trouble tracking down the ...