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

2
votes
4answers
659 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 ...
6
votes
3answers
7k 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
5k 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
15k 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 ...
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
2k 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
15k 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
587 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
727 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 ...
3
votes
5answers
8k views

Connection closed by remote host

I'm trying to connect to a server using a private key generated through cPanel and stored on my local machine, but I am getting the "Connection closed by remote host". Any ideas? XXXXX-computer-2:~ ...
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
2k 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
1k 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 ...
5
votes
2answers
761 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
2k 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
1answer
460 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
1k 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
494 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
807 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
341 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
368 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.
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
1k 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
16k 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
704 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
2answers
881 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
660 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
945 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
497 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
994 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 ...
26
votes
5answers
10k 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 ...
15
votes
3answers
9k views

Mousing and Page-Up/Down in Terminal for Mac OS X

Compared to *nix, Terminal.app seems pretty lame. How can I get it to: Send Page-Up/Down to an application, instead of just scrolling the terminal output Mouse around in vim. set mouse=a isn't ...
48
votes
2answers
45k views

What's the difference between scp and sftp?

Usually, I use the scp command to transfer files on *nixes. What's the difference between SFTP and SCP? Don't they both work on SSH?
27
votes
2answers
32k views

SSH: execute sudo command

I have an interactive shell script, that at one place needs to ssh to another machine (Ubuntu based) and execute something as root (the user should enter his password, but the remote command should ...
20
votes
2answers
56k views

How do I SCP from remote machine to local machine when I am outside of my home network?

While I understand how to scp files to and from my server from within my home network, how can I scp a file from my server to my local machine when I am on the outside, say at Starbucks? While I am ...
16
votes
2answers
3k views

tmux and screen-256 TERM not supported on remote hosts

I have set up my tmux to use screen-256colors and it works great with vim. However, when I ssh to a remote host from within tmux, screen-256colors isn't recognized, so I'm getting errors like this: ...
11
votes
4answers
2k views

What are possible security issues with an SSH daemon?

I'd like to be able to SSH to my Ubuntu 10.04 office PC from the outside. I am thus thinking to start up an SSH daemon on the PC. What are the security issues, possible glitches, specific ...
29
votes
2answers
12k views

Is it a bad idea to use the same private ssh key on multiple computers?

I recently bought a laptop from which I need to access the same remote hosts that I do from my desktop. It occurred to me that it might be possible to simply copy the private key file from my desktop ...
28
votes
8answers
24k views

Top causes of slow ssh logins

I'd love for one of you smart and helpful folks to post a list of common causes of delays during an ssh login. Specifically, there are 2 spots where I see a range from instantaneous to multi-second ...
24
votes
6answers
36k views

List open SSH tunnels

I use a lot of SSH tunnels to various servers on my linux machine (for tunnelling to databases, web servers etc) and it would be really handy to view a list of current open tunnels via a shell script. ...