Tagged Questions

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

-1
votes
2answers
101 views

SSH Linux server does not execute all commands properly

I connect to my webserver with Putty through SSH + password and wanted to generate a pair of keys to do the login for me. Unfortunately, the command gets somehow 'stuck'.. as you can see on the ...
2
votes
2answers
735 views

SSH Keys Still Prompts for Passphrase

I recently generated ssh keys, copying my public key to the server I need access to and keeping my private key in my ~/.ssh/ directory. Everything works great but ssh prompts me for the passphrase ...
3
votes
1answer
3k views

Starting Windows GUI program in Windows through Cygwin sshd from ssh client

I would like to ssh into my Windows box running Cygwin sshd and run the Windows GUI application in that Windows box. I don't want X forwarding. e.g. From ubuntu-server terminal, I ssh into Windows ...
0
votes
1answer
377 views

Networking of two computers over wifi+ethernet

I have two computers, both running Arch Linux. My desktop is running headless, constantly plugged into the ethernet jack in my room. My university has a campus-wide wifi network that I can use with ...
2
votes
1answer
63 views

ssh not working with yes

I had to solve a fringe case lately where I had to add a number of server fingerprints to a user's known_hosts (the authorization is performed with a keypair). I thought the easiest solution would be ...
1
vote
1answer
1k views

Trying key based password-less SSH login to remote computer but still being asked for password

Trying to SSH in to remote computer but still asking for password. I have a number of computers running SElinux and only one of them is giving me a hard time using ssh without the password. I did ...
0
votes
1answer
528 views

Plesk SSH chown root:root admin by mistake

I have a Plesk server running the domain geekwiz.com. I was trying to run cronjobs using the scheduler on plesk however I was receiving emails of the cronjobs saying: permission denied. I SSH into ...
0
votes
1answer
437 views

Amazon EC2 linux user accounts

I have a Linux AMI setup on EC2. The default user is ec2-user. I created a second user account on the instance. I copied the .ssh/authorized_keys file from ec2-user home directory to the new user's ...
0
votes
3answers
751 views

SSH RSA key with non root user

I'm trying to secure my VPS, so I'm trying to use RSA authentication, obviously I don't want to be logging in as root, so I disabled PermitRootLogin but I also disabled PasswordAuthentication My ...
1
vote
1answer
663 views

autofs fails to mount a remote drive using sshfs - fuse

I am currently developping an application for the purpose of which I need to retrieve some files from a remote location, that I can only access through ssh. Since I need to automount that repo, I ...
0
votes
2answers
49 views

Disable Amazon AWS Echo to Different SSH Connections

I am on a Power Mac OSX mountain lion. I ssh into an amazon aws ec2 instance. Then I want to ssh into the same aws ec2 instance. When I do any command in one connection it is echoed in the other ...
10
votes
1answer
5k views

How do I extract fingerprints from .ssh/known_hosts?

My laptop has a well-populated .ssh/known_hosts file. I'd like to leverage that when connecting to remote hosts from my desktop, since tracking down the fingerprints can be a real chore. However, I ...
1
vote
1answer
255 views

How to forward local server on XXXX port to sever outside firewall on port XXXX

Using ssh -R 9333:localhost:9333 remotehost.com I'd like to be able to navigate to this via Chrome/Firefox/IE without have to use socks. http://domain.com:9333
1
vote
0answers
460 views

ProxyCommand with sudo

I'm trying to set up SSH so that I can easily log into an server that is accessible only via a sudo to an intermediate server. From the command line, logging into it is of the form: sudo -u admin ...
0
votes
1answer
241 views

How to run a command on startup connection ssh with cygwin

I have a machine with cygwin installed in and several disk mapped. When I start a connection like this: ssh 10.120.10.11 ... cygwin starts and the .mkshrc script is run which make these disks ...
5
votes
1answer
102 views

Can one install linux on a Mac via ssh?

Title says it all, read on if you think this an odd request. I realize that this question is quite unusual, but ssh and FTP are the only access methods for my Mac. Why I'm doing this: The ...
1
vote
2answers
823 views

ESXI Server Port forwarding

I brought a new server with one static IP. So My problem is - I don't have extra static IP service providers charging me very high amounts. So, Inside ESXi I'm running one Ubuntu server so is it ...
2
votes
2answers
4k views

What is the difference between the .pem and .pub and non suffixed ssh credentials files?

Running "ssh-keygen -t dsa" generates two files, a private and public key. Its simple enough to comprehend that the private key is used to identify yourself to the outside world, which only sees your ...
4
votes
1answer
2k views

Why a command launched with nohup isn't able to write file after user logout?

I'm using nohup to launch matlab and run a script which requires to read and write some given files. nohup matlab -nojvm -nodisplay -r 'MyScript'& This runs smoothly while I'm logged in but as ...
0
votes
2answers
106 views

How to type exit on remote server without exiting ssh

On a remote server I need to type exit to leave a certain mode but unfortunately the exit is picked up by ssh and treated as an instruction to end the shh session.
0
votes
1answer
225 views

SSH tunnel through public IP to forward on internal IP

I have a mysql database that is only accessible via internal network IP 10.*:3306 and I want to use my local machine to ultimately setup phpmyadmin to admin it, but I'm first just trying to get the ...
0
votes
1answer
2k views

how can I connect to remote desktop of a fedora machine from another linux?

I try to connect remote desktop to my fedora machine from another linux machine. I did it for specific programs and run them with GUI however I cannot find a way to remote desktop access other then ...
4
votes
2answers
3k views

Cannot connect to my mac via SSH

I want to open a connection to my mac (10.8) via SSH. An SSH-server is installed by default on OSX. Remote login is enabled, so the service is running and I can connect to to localhost via ssh. ...
0
votes
1answer
1k views

PuTTY - how to enter both username and password? [duplicate]

Possible Duplicate: If I typo my username when ssh-ing, is there a way to go back and change it? When logging in using PuTTY, I sometimes use a wrong or mistyped user name. PuTTY does not ...
1
vote
1answer
810 views

Tunneling over SSH to use VNC via gateway

Does anyone give me any hint with this situation. I have my desktop-computer (running on Ubuntu) in my company. Company has vpn gateway which helps me to connect my desktop-comuter via ssh. Now I want ...
5
votes
1answer
159 views

Is there a way to distinguish the output from a remote command from the output of ssh itself?

I execute a remote command thru ssh and I need to parse the output of that command. The remote stdout/stderr are forwarded fine by ssh back to my local box on the stdout/stderr of my local ssh ...
2
votes
3answers
254 views

How to set up SSH access without a valid internet IP?

I want to allow other people to ssh into my Mac via login and password, but it does not have a valid internet IP. How to allow people to ssh when the machine might be at home, in an office, or coffee ...
2
votes
3answers
172 views

How to prevent a user from viewing the entire file-system?

I've set up SFTP/SSH so that a user can only put to their home directory, however, they can still cd to all other directories and get files that they see. How can I prevent this? EDIT: My ...
3
votes
1answer
602 views

SSH port forwarding with automatic reconnect, script executing at startup

In short, every time my computer boots, I would like to start a ssh port-forwarding connection that will reconnect with the server if the connection drops. Computer is Debian Wheezy x64. An initial ...
1
vote
1answer
261 views

SSH tunneling commands for better security and privacy

i have a centos 6 VPS. I use ssh -p 443 -D 8080 -f -C -N root@ip on mac terminal for SSH tunneling but with wireshark when i sniff my traffic i can see DNS requests are not encrypted ! (i use ...
1
vote
1answer
255 views

How can I start a process over SSH such that it will continue to run after I disconnect?

XBMC occasionally crashes on my media server. It's a pain to bring down the media server because I have to manually restart a number of services each time. I'd like to be ablle to start XBMC from an ...
1
vote
0answers
343 views

trying to remote in to work computer via an ssh tunnel [closed]

Trying to remote into a windows machine from a mac using their instructions: On your home computer, install and open putty (http://www.putty.org/) Enter a name into the Saved Sessions field. Enter ...
2
votes
1answer
249 views

Can tmux and a SSH-client on Windows be more integrated?

I am using tmux on my Debian server and PuTTY on Windows. This works as expected, but sometimes I wish, to have a more Windows like feeling when working via SSH, eg. have separate windows for the ...
3
votes
2answers
3k views

I forgot my private key's passphrase, but I use it every day

...from my Mac. I think Keychain Access remembers my passphrase and applies it every time I log in to a server, but in this instance I can't log in to the remote server directly from my laptop; I ...
1
vote
1answer
310 views

scp over ec2 ignoring a directory?

Facing a problem while using scp to download a file from AWS EC2 instance(to which I have assigned a elastic IP),scp is ignoring the my-store folder. But when i access the ec2 instance over ssh, I can ...
3
votes
1answer
2k views

How do I share a reverse SSH tunnel on a network?

I have a remote computer on a 3G PPP connection. I can't connect to this computer via the Internet as I believe the PPP IP pool uses NAT to connect to the Internet (I get given a 10.x.x.x address when ...
1
vote
0answers
364 views

Accessing a Time Capsule manually via terminal using iCloud credentials

I'm assuming that the task noted above should be possible, as the task doesn't seem like it should be far different from accessing a Mac computer via SSH or through Go -> Connect to Server on OSX. The ...
8
votes
2answers
2k views

Setting up ssh config file with id_rsa through tunnel

I've been struggling to set up a valid configuration to open a connection with a second machine, passing through another one, and using an id_rsa (which requests me a password) to connect to the third ...
1
vote
1answer
118 views

Cannot SSH into ANY host (outgoing) on entire local network

I'm having a rather strange issue with my network here, and I'm hoping you guys might be able to help me out. As of recently, over the past few weeks or so, I've been noticing some strange problems ...
1
vote
2answers
1k views

How can I SSH into home computer from internet

I have a setup like follows I have a router that connects to the INTERNET, where my ISP provides dynamic ip two systems are connected to the router with locl ip 192.168.1.2 and 192.168.1.3 the ...
2
votes
1answer
58 views

Losing ssh keys when it's the only authentication

What happens if you set up a server or VM and put your ssh keys on there, then you disable password authentication. Then, you somehow lose your private key and can no longer authentication to the ...
1
vote
1answer
256 views

openssh won't find .ssh directory on cygwin

I just installed Cygwin, and openssh ignores the known_hosts file. My guess is that openssh does not even see the ~/.ssh folder. I've defined a Windows environment variable HOME, and Cygwin does start ...
0
votes
0answers
68 views

.vimrc not apply during ssh

I'm connecting two computers using ssh. I have .vimrc file saved in both computers. However, it seems like the .vimrc in remote computer does not apply when logged in using ssh. The system in remote ...
0
votes
0answers
430 views

scp not working

I need to copy a file from remote machine(which is using Windows OS) to my machine(It also uses Windows OS) using ssh in java.So i used JSch sample code exec to do this work.In this i gave scp command ...
1
vote
1answer
2k views

Unable to Change Password for Private SSH Key

I'm running PuTTY Pageant on Windows, and I used it to generate a private SSH key with a .ppk extension. Now I want to change the password to that key, so I opened my Git bash terminal, cd'd to my ...
0
votes
2answers
1k views

Remove all Mac generated files '._' with bash

I'm trying to find the command to delete recursively all Apple Mac generated files such as '._' from the drive. So far I have: find . -name '._*' -exec rm -rf {} \; however it doesn't seem to do ...
7
votes
2answers
713 views

Isn't it dangerous to use SSH keys to login to an unknown/compromised server?

Say I provide someone with my public SSH key, the id_rsa.pub and he/she installs it on a server that is compromised, and I am asked to login. Does the login process involve sending my private key to ...
3
votes
3answers
4k views

How do I resolve a ssh connection closed by remote host due to inactivity?

I'm currently trying to ssh to a colo, after 1 to 2 minutes of inactivity, I get: superuser@thecolo:~$ Connection to 10.123.45.67 closed by remote host. Connection to 10.123.45.67 closed. ...
0
votes
1answer
113 views

Tunneling from one unix server to other unix server using ssh

I am trying to connect one Unix server to another. Direct login is possible, but logging in through a tunnel is failing. I'm creating the tunnel connection using: ssh -N -f -L 6002:bsc2:22 ...
1
vote
0answers
720 views

Passwordless ssh failed when login using username

I was trying to setup Hadoop and was stumbled on passwordless ssh to localhost. I am getting a password prompt when trying to connect using ssh username@hostname format. But there is no problem ...