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
vote
3answers
739 views

linux routing outbound port 80 traffic via ssh tunnel, iptables, or a simple route

I have two hosts, A and B. Host A hosts services on port 8080 and has outbound internet firewall rules allowing port 80 and 443 access to Host C. Host B is on the same subnet as Host A. Host B is ...
0
votes
2answers
458 views

Script to auto execute creation of ssh tunnel

I'm a CS student, and still learning a lot of these things, and so please bear with me if I don't have a full grasp on what I'm trying here. I'm on a Mac, connecting to a linux machine. I can set up ...
1
vote
1answer
360 views

Run GUI outside of SSH session

I am trying to run a GUI application (if only it weren't GUI...) over SSH, but I want it to port the application to the native X session and not the SSH session. That way, when I close the SSH ...
0
votes
2answers
121 views

Disabling SSH passwords for all users except one

It's easy enough to disable password authentication for SSH as a whole, but is there a way of allowing one user on the system the ability of logging in with a password? The reason for this is we have ...
0
votes
1answer
804 views

how do I preserve export PATH?

How can I make ssh admin@nas command work if command is in /opt/bin? On my QNAP NAS File /root/.ssh/rc: echo "old path is $PATH" export PATH=/opt/bin:/opt/sbin:$PATH echo "new path is $PATH" on my ...
0
votes
2answers
490 views

Access company intranet (http/https) using SSH (AllowTcpForwarding might be set to “no”)

How can I access web services inside my company's LAN from the outside? I can SSH in to a machine that's inside the LAN. I tried to use Putty to set up dynamic port forwarding and configured Firefox ...
4
votes
1answer
897 views

Why does redirection fail when passing through ssh, sudo and sh?

After reading this question, I know that I have to do sudo sh -c 'ls -hal /root/ > /root/test.out' to avoid the "Permission denied" error. But when I do ssh hostname sudo sh -c 'ls -hal /root/ ...
2
votes
1answer
38 views

Linux command for creating/leaving/returning to shells

I was using a command a long time ago to manage my background processes and I can't remember wich one. I had to install it. I could create a shell and go into it Run a process Leave the shell with ...
-1
votes
1answer
661 views

how to run a program with root privilege in a remote linux host

I want to run a program on many remote hosts these program may run serveral hours and it needs root privilege I have uploaded the program to those remote hosts I can only ssh into those machines ...
0
votes
2answers
228 views

Why does my ssh session terminate immediately?

I have a debian machine, where I have difficulties to log into via ssh. Executing commands on the server over ssh is no problem -- just I get no prompt, but the connection is terminated again: > ...
1
vote
2answers
162 views

Vnc and ssh tunnelling not working

I am trying to access my work computer (server C) via vnc. I have root on this machine. I can't access it directly so I have to go via server B. I have done the following steps. First on my local ...
0
votes
1answer
1k views

The `ssh-keygen` command is not installed in Arch Linux and can't find it in AUR or official packages

As the title says. For some reason ssh-keygen is not installed on my install of Arch Linux, and I can't seem to find it on the AUR or the official packages repository. How would I go about obtaining ...
1
vote
0answers
57 views

virtual filesystems appear to be limited on win32 build of Midnight Commander

I installed Midnight Commander 4.8.7 on my windows machine at work. 2 of the features that I would love to use are the virtual filesystems for zip files and ssh. But the only virtual filesystem that ...
1
vote
2answers
226 views

tmux session not resuming to the same from different entry points?

I don't know if this is supposed to work by default, but it seems like when I try to resume a tmux session I have from one machine or a different one. I am using two different kinds of connection to ...
3
votes
4answers
949 views

Running sshfs as user via autofs

My situation: There are several servers on my LAN which I do not administer I access them using SSH for sshfs, shells, and remote X11 apps I have set ControlMaster auto in my ~/.ssh/config file so I ...
1
vote
3answers
4k views

Opening Browser in remote machine through ssh [ CLOSED ]

I need to open browser with specific url using ssh through a remote machine, i have enabled password less connection, i am able to get command o/p which run on remote machine using ssh, but how can i ...
1
vote
1answer
52 views

Is it possible to access x11 clipboard in a untrusted X11 client?

How can I access x11 clipboard in a remote untrusted client(ssh x11 forwarding)? All I need is the x11 clipboard and I don't want to enable trusted x11 forwarding(which would give the remote client ...
1
vote
1answer
99 views

Found this logentry on my server in the cron.logs, seems to be a hack-attempt, any suggestion for further proceeding?

Here is a logentry, which was executed: mkdir /root/.ssh/;echo "ssh-rsa <some unkown public-key> > /root/.ssh/authorized_keys I'm guessing that I was hacked. Any advice for cleaning up ...
2
votes
1answer
212 views

SSH tunnel in Putty says “address already in use” but that's not true

I've configured a putty session from Lubuntu to a VPS on the Internet via a proxy server. The connection to the VPS is correctly established, but the tunnel isn't. This is the tunnel configuration: ...
0
votes
1answer
120 views

How to regain control over Terminal after waking computer

I'm using Mac, but I don't know if this matters. Anyway: In Terminal, do SSH to a remote host. Close lid. (The network connection is cut off at this point). Wait. Open lid again. Some times, the ...
0
votes
1answer
114 views

Where do I store sshfs configuration settings?

When using sshfs several sites recommend using options like: -oauto_cache,reconnect,defer_permissions,negative_vncache,volname=RemoteHome I tried adding these in ~/.ssh/config under the hostname: ...
4
votes
1answer
4k views

Virtual Box ssh not working on Virtual Box Ubuntu machine

I have Ubuntu 12.10 installed, and 12.04 Server set up in my virtual machine. My VM has internet access, and I can ping it from my host. ping symfony.dev # points to 192.168.56.101, and successful ...
3
votes
1answer
1k views

ssh port-forwarding with GatewayPorts = no

I want to forward sshd (port 22) on machine X which has a non-routeable IP. The forwarding options are nc (which is horrible), inetd (requires privs), iptables (requires privs) and ssh. So I'm using ...
0
votes
1answer
21 views

Unable to keep remote job running on OS X

I just got a MacPro and am trying to work remotely on it. But when I ssh into it and start a job, put it in the background, and log out, the job apparently goes to sleep. So when I log back in and ...
1
vote
1answer
780 views

Is there a way to not override existing files when using pscp?

I am trying to copy files from a folder on a server using a batch file. However I don't want the files in the destination folder to be overridden. This is what i have: set /p address=ip address: ...
0
votes
2answers
1k views

Internal and external ip

How to find the internal IP and external IP of a linux server by connecting to it using Putty? Secondly, what is the IP address given by the echo $SSH_CLIENT command, is it internal or external? My ...
2
votes
4answers
824 views

A decent remote shell from UNIX to Windows? [closed]

I'm on Linux and develop on a Windows 7 box virtualized via VirtualBox. My usual way of developing consists in editing source files from Linux via nautilus/SMB (smb://192.168.1.4/...) then when I'm ...
3
votes
1answer
481 views

SSH: “no such identity”

I'm having a very peculiar problem getting SSH to work on my Linux box. I have a passwordless git user identified by an OpenSSH key. If I attempt to ssh into it from either the same or a different ...
2
votes
0answers
358 views

SSHFS graceful degradation instead of freeze when connection is lost. Is it possible?

A third-party program will write files to a SSHFS mounted dir. If the internet connection is lost, the third-party program will likely crash (badly), because all programs trying to access such an ...
2
votes
3answers
449 views

Can't SSH to AirOS

I get wireless Internet connection with device called "air OS". I can access it through the webpage, and from there enabled SSH access. However, trying to SSH in is not working (using this command): ...
1
vote
1answer
274 views

PHP Exec function reports failure on some commands that work by SSH

I'm on CentOS 6 64bit with PHP 5.4.12. This is very strange behavior by PHP. See the following script: echo 'Trying Query: whereis jbig2dec<br>'; exec('whereis jbig2dec',$output) or ...
6
votes
4answers
3k views

Secure remote editing of root-accessible files over SSH

As per security best practices one should not allow root login over SSH with password or keys. Instead, sudo should be used. However, if one wants to use SSH (SFTP) for remote editing of server ...
0
votes
2answers
109 views

ssh connection and X11 server, diverse issues

I'm using a machine in a town next to mine via ssh (with putty). I'm connecting through ssh, and after I log in that machine I start (with Xming running in my PC), a software that opens X11 window. ...
2
votes
0answers
425 views

How to route internet through SOCKS proxy running on iPhone?

I have a jailbroken iPhone 3GS that I have set up a SOCKS proxy on using the following command: ssh -D 3333 ec2-user@ec2-12-345-678-910.us-west-2.compute.amazonaws.com I would like to share this ...
2
votes
2answers
4k views

using python Paramiko for ssh: sudo: no tty present and no askpass program specified

I want to use paramiko to ssh into a bunch a remote nodes and run some command line with root priviledge I have ssh key in my home directory and so i don't need to input password when I ssh into ...
2
votes
0answers
401 views

Launchd not launching ssh-agent after plist edit

I'm trying to reconfigure my ssh-agent to have a timeout via the -t argument. I edited /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist <array> ...
2
votes
2answers
189 views

Share monitor keyboard from desktop to laptop

I always bring my laptop with me; as I have no mobile and email is my only mean of communication with friends/family. When I need to check my mail I usually do it SSHing from my work machine to my ...
3
votes
2answers
571 views

SSH as Normal User --> SU --> SCP as Root

I'm on a Win7 box connecting to a linux server. From reading: http://winscp.net/eng/docs/faq_su it looks like I need to open my SCP connections as the particular user. When I connect via SSH, I can ...
1
vote
1answer
71 views

Network communication between three computers using SSH

Say I'm on computer A and I use SSH to get a console on computer B. Then through this SSH console I copy files from computer B to computer C. ME (Computer A) ...
0
votes
1answer
227 views

Need to FTP files to a website every 5 minutes from a local PC

On my local PC server. I have some HTML files which update every few minutes. I need to update/upload those files on a dir on my website every 5 minutes. Currently I'm using a batch script and ...
1
vote
1answer
56 views

What keys need to be shared for SSH?

Assuming I have a user (on a client) that wishes to SSH to a server that it has never connected to before without any user intervention (don't have to very username/password/server fingerprint) What ...
0
votes
1answer
102 views

I can not match group in ssh using RSA Key with passphrase

I have two accounts on my computer. One account is named bob. The other account is for a user named joe. I am using RSA key with a passphrase. I can connect BUT when I add the lines Match Group joe ...
0
votes
1answer
241 views

SSH: What is the difference between RhostsAuthentication and RSAAuthintication?

What is the difference between RhostsAuthentication and RSAAuthintication? Can anyone give a small example on both of them? If we want to use ssh without password? Which method is more prefer and ...
0
votes
1answer
133 views

How to configure secureCRT to remove content display after quit from vim

Open a ssh or telnet connection in secureCRT 6.0 or 7.0, when "vim xxx.txt", after quit vim by ":q", the content of xxx.txt will still be visible in screen. But in putty, the same operation, content ...
3
votes
3answers
3k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start a screen when I ssh in, and NOT exit my ...
1
vote
2answers
2k views

RDP over ssh tunnel using iphone

so i want to tunnel an RDP connection through ssh using my iphone-4s. I already know how to tunnel this connection using putty(the ssh client). The only problem is i'm yet to find an SSH client for ...
0
votes
2answers
469 views

Correct use of Tmux and Irssi via SSH

I'm pretty new with Tmux. I'm looking for a way to connect a Tmux session locally to a distant one, running on my server with irssi and other stuff. If i start a regular session with tmux And ...
0
votes
2answers
128 views

Can a ssh key work for restricted to home user

I am currently running linuxmint and openssh. I have 2 accounts on my computer Joe and Bob. I have the keys and passphrase created by joe stored in the /home/joe/.ssh/ folder. I can connect to Joe ...
0
votes
1answer
117 views

Kill user session if from unknown source

I would like to kill ssh connections to my server if they are from a particular 'office' Any ideas how I would do this without using ip-tables? Cheers
0
votes
1answer
229 views

Transfer (NOT COPY) files to remote computer?

I know that using scp over SSH will copy the files between hosts, but what if I don't want to copy them but instead move them over entirely? What command could I use using a secure connection over ...