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

4
votes
2answers
688 views

What is id_rsa.keystore?

In my .ssh directory I have the following files - drwx------ 2 rohit rohit 4096 Jun 22 03:34 ./ drwxr-xr-x 62 rohit rohit 4096 Jun 22 11:16 ../ -rw-r--r-- 1 rohit rohit 402 May 25 15:19 ...
0
votes
3answers
2k views

How to do something like `mplayer movie.mpg` from ssh and it play on the current display?

I've set up a little media center computer running Arch Linux. I want to eventually get it so that there is no keyboard or mouse required. Right now I want the solution to be SSH. My problem is that ...
1
vote
1answer
875 views

SSH Agent Forwarding Not Working [closed]

SSH Agent Forwarding stopped working for me. Any ideas as to what might be going on? I'm attaching my logs below: Connecting to the server: http://goo.gl/4xxz9 Connecting to github on server: ...
0
votes
1answer
114 views

Public-Private key pair ssh authorization for another login

Currently to connect to my server via ssh I am using ssh domain.com -l root I am authenticated with public-private key pair. My Mac username is different from root, so I need to provide -l key. ...
2
votes
1answer
140 views

How to get rid of motd on a single user account?

I know how to modify and how to get rid of motd in general, but the problem is, that I'm not allowed to sudo on my school's server - and I'd like to get rid of a quite long motd that appears each time ...
0
votes
1answer
179 views

SSHFS: send remote setup commands before mounting

I am trying to mount through sshfs (with osxfuse, former macfuse) a folder on a router. Unfortunately the router doesn't replay directly with a standard command line but requires a couple of commands ...
2
votes
4answers
606 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 ...
1
vote
0answers
116 views

Configuration to point an X tty to a separate system?

Specifically, I have an Ubuntu 10.04 system with a headless Ubuntu 12.04 virtual machine, and I'm looking for a way to have it set up so pressing ctrl+alt+F8 will take me into another X client which ...
1
vote
1answer
590 views

Why doesn't redirect work for scp password input?

I want to copy from remote box with scp, while the fact that each time I have to re-enter password is annoying. So I store my password in plain text and expect the following code should work scp ...
1
vote
0answers
119 views

ssh - user xyz does not exist

when connection via ssh to a server I get the following message: -ssh-bash: User #1003 does not exit in /etc/passwd. It used to work and newly I made an update to the ssl libraries on my ubuntu. ...
-3
votes
1answer
2k views

download file using SSH in putty in windows operation system

How do you copy file from Remote to your local computer in Windows using Putty. scp -r username@remote:/path/to/folder /dest/local/path I tried this but what would I write in place of ...
2
votes
2answers
710 views

Can I re-attach SSH key forwarding through a disconnected Screen session? [duplicate]

Possible Duplicate: ssh-agent key timeout with screen or tmux on bastion host I have a laptop on which I have pageant (the PuTTy SSH key agent) running. If I ssh to a system and launch ...
0
votes
2answers
128 views

Text wrangling: How can I get just the key comment from authorized_keys?

Auditing some servers, I need a list of the comments on all the authorised keys in the authorized_keys file. How can I cut this file to display a list of comments, eg user@host? Anything can appear ...
0
votes
2answers
273 views

Unable to configure SSH in Cygwin

I'm new to Cygwin and I'm trying to install Cygwin with SSH. But currently I got a problem while configuring SSH. I passed all steps for configuring SSH until it asks for the password of the ...
3
votes
1answer
626 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 ...
1
vote
0answers
107 views

SSH (or other remote access) in Windows 7 outside session 0

I would like to connect to Windows 7 remotely from script (run from Linux) and be able to execute GUI commands (i.e. command that access the display device). What is the easiest way of achiving it (I ...
1
vote
1answer
1k views

Changing IP settings via ssh in Ubuntu. What should be done?

I've hear mixed things about how to handle setting IP parameters in Ubuntu. There's several sources that say if a GUI is installed like KDE or Gnome, that you should only use the network manager to ...
1
vote
3answers
126 views

Why does ssh provide insecure off-host forwarding?

In the local port forwarding invocation below, [me@TunnelBeginHost]$ ssh -L TunnelBeginPort:TunnelEndHost:TunnelEndPort ViaUser@ViaHost , given the fact that the portion of the tunnel between ...
0
votes
1answer
68 views

ssh login with multi-keys (several users) from the same workstation

Basically, as it comes from the title, I'd like to login from my workstation to a SSH server by using different account in different shells. What I'd like to do is to backup all my account from this ...
3
votes
1answer
64 views

Should I create a separate user for a backup script that uses a passphrase-less ssh key?

I currently have a back-up script running via cron. It basically is a few rsync commands stringed together. For my main shell logins I have ssh keys with passphrases, but because of the automated ...
5
votes
1answer
2k views

Preventing SSH RSA host key warnings for change of key vs IP address

I have a network with DHCP enabled, and also a computer that dual boots operating systems and has different SSH keys on each (and yes, I would like to keep different keys on each rather than copying ...
0
votes
1answer
144 views

Cannot use `su` or `sudo` after set up key-based access to SSH

I'm following this tuturial to setup key-based access to the SSH I created a user. I add copy the key to the client via ssh-copy-id <username>@<host> Becasuse ssh ...
1
vote
4answers
423 views

Do superuser things with normal user

EDIT Read answer of janos below. It's more use SSH-keys to access a root directly. I want to secure the SSH access to my server. One thing I read everywhere is to disable the root user login. ...
2
votes
2answers
919 views

Editing files on an Ubuntu server from Sublime Text 2 running on Windows

What's the best way to use Sublime Text 2 running on Windows 7 to edit files that are located on an Ubuntu server? Emacs has TRAMP which allows the remote editing of files via ssh. Something like ...
1
vote
3answers
437 views

How do I send a command to a Linux box from a Windows box in a script?

The problem: I have a backup program (BackupAssist) that can run scripts automatically after a backup. I want to automatically shut down the computer that stores my offsite backups after the backup ...
3
votes
3answers
4k views

VPN Tunnel vs SSH Tunnel

What is the difference between a tunnel, a VPN tunnel and an SSH tunnel? According to Wikipedia, "tunneling" is: Tunneling typically contrasts with a layered protocol model such as those of OSI or ...
8
votes
4answers
51k views

How can I resolve the error “cannot execute binary file”?

When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I couldn't do anything in here. Commands such as halt, ...
0
votes
2answers
94 views

Showing a stack of ssh connections in terminal

I had this idea for long time and tried several ways to implement, with no luck. Tried to google many times and always finding not quite what is needed. How to do: $ ssh hostA ...
1
vote
1answer
708 views

Run windows batch file from ssh login - env vars missing

I am trying to run a windows batch file from a ssh login. I have successfully installed cygwin w/ OpenSSH on the server (windows 2003). I can log in and run the file, but the file does not run ...
1
vote
1answer
567 views

How can I connect to a SSH tunnel using PUTTY or another client, with the information available through SSH command?

I am trying to establish a connection in SSH, to a remotehost... I am having the following information from my company(example, not real data)... ssh -p 1234 -L 4321:126.4.12.3:4423 ...
1
vote
3answers
2k views

How to copy files between two open SSH shells?

If I am logged in via SSH on 2 servers and want to copy some files from one to the other (e.g. configuration from an old to a new server), what's the easiest way to do that?
0
votes
1answer
433 views

Can you set up PuTTY to SSH into machine through another machine (through an SSH tunnel)

Basically, I'm wondering if the problem from Forward SSH traffic through a middle machine can be solved using PuTTY. I gather I could start one PuTTY session to create an SSH tunnel to the first ...
1
vote
0answers
124 views

Tunnel from my home computer using my server

I have a local webserver in my Mac (OS X 10.7.3). I was wondering how could I build a tunnel to "publish" it temporarily on the internet. For example, my server is running on localhost:20000 and I ...
0
votes
1answer
699 views

ssh localhost works, but ssh [external url of localhost] doesn't

I'm trying to work out how to ssh into a machine at work (it runs an RHEL-based distribution with OpenSSH 5.3). I have been given instructions on how to set up keys, permissions, etc., which have ...
0
votes
1answer
450 views

How can I create session logs of individual SSH sessions?

Here is what I am looking for: A way to log individual SSH sessions on SunOS. I would like to have the files kept separate based upon the hostname of the device I am SSHing into. I am only using ...
0
votes
1answer
391 views

How do I ssh from OSX Lion to Ubuntu GUI?

I want to SSH from my Macbook to an ubuntu machine located on a domain in the form of xxx.ri.cmu.edu (I have a username and password to connect to it) but I want to view the GUI and not just the ...
0
votes
1answer
88 views

Access port on machine by connecting to other machine via SSH?

I have to access my home router's web interface on port 80. Unfortunately, the only way into the network I have at the moment is SSH to another machine on the same network. me ---|---SSH Box----Home ...
3
votes
1answer
61 views

Other user SSHed from my hardware

While logged into our HPC cluster I used w to check out who else was logged in. I happened to notice that it looks like there's another user logged in from my (personal) computer; 19:04:47 up 40 ...
0
votes
1answer
807 views

port forwarding and canyouseeme.org

I'm using a Qwest Q1000 modem/router combo, and believe I have set up port forwarding correctly. If I go (or you go) to http://canyouseeme.org and type in my IP address(174.29.9.83), and port (22), ...
0
votes
1answer
622 views

Clearing the terminal before displaying MOTD

When I connect to my SSH server, it prompts me for the user name and password. After I have authenticated, it will display my MOTD, then show user prompt, like this: Using username "root". ...
12
votes
2answers
2k 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: ...
1
vote
3answers
660 views

SSH asking for password for one user and not another

I have two users on the same machine and am attempting to set up SSH for user#2. SSH was still asking for a password for the second user so I copied the .rsa file from user#1 to user#2. although they ...
2
votes
1answer
93 views

Where is configuration to show IP address on shell prompt being stored?

We have two Xservers on our network. On server A all our employees have an account setup, but on B the only account is the admin account. I can ssh to server A fine with my username and pass that are ...
1
vote
0answers
126 views

Vlan issue with linux kernel 3.x

I have a strange issue with linux hosts running kernel 3.x (e.g fedora 16, ubuntu 11.10), I am unable to SSH and traceroute (only tests done currently) hanging when travelling over a vlan network ...
1
vote
1answer
301 views

Remote restore gz mysql database

I tried $> ssh root@ip "gunzip < [backupfile.sql.gz] | \ mysql -u [uname] -p[pass] [dbname]"` but get the error: ERROR 1044 (42000) at line 42: Access denied for user '[uname]'@'%' ...
0
votes
1answer
3k views

SSH service will not start on fresh Cygwin 1.7.15 install

OS: Windows 7 x64 Cygwin: 1.7.15-1 OpenSSH: 6.0p1-1 I'm attempting to install an SSH server on Windows 7. The tutorial that I'm following to do this is here: ...
0
votes
1answer
839 views

How to restrict root login with restriction

in openssh, you can restrict root login (PermitRootLogin no) but can it have an exception?
2
votes
2answers
1k views

Command to remove a ssh authorized key on server

Is there a command (or a one-liner) to remove a ssh key on a server? Something like the opposite of ssh-copy-id?
0
votes
0answers
356 views

SSH password not working from iPhone to laptop

I recently jailbroke my iPhone 4, running iOS 5.1, and am trying to recover some files that were deleted. I am new to SSH and am currently using Cygwin. The issue I'm having is that when I try to to ...
0
votes
2answers
517 views

Can ssh service be accessed in private network?

My friend has a ssh server in a private network (ip address is 10.9.11.*), can this ssh server be accessed in public network? if it's possible, please tell me how to get it. thanks