SSH (Secure SHell) is a protocol for running commands on a remote computer.

learn more… | top users | synonyms

1
vote
1answer
344 views

Autocompletion and coloring not working, when using ssh in emacs shell

I'm connecting to remote server using emacs shell. Emacs shell displays directory listings with proper coloring and auto completion when working with local machine. But when I use ssh the ...
1
vote
0answers
1k views

Automate `pbrun su` via plink

I am trying to automate an sFTP process for our project. When I login with PuTTY and manually type the command pbrun su - user1, root access is given to user1 and I am able to do the sFTP process. I ...
1
vote
1answer
430 views

Mount home partition on user login

I got a VPS with a user dedicated to store my files. As i am aware of the current situation with the NSA and many other governments, and my VPS is hosted on a doubtful country i would like to ensure ...
0
votes
1answer
121 views

Can I cancel SSH (after using it to browse) without logging out?

I've used the command ssh -D 8080 -f -C -q -N user@IP to SSH into a VPS and set it to browse in the SOCKS proxy settings in System Preferences (on my Mac). How do I cancel the SSH session (and browse ...
218
votes
4answers
792k views

How to copy files from one machine to another using ssh [duplicate]

I'm using Linux (centos) machine, I already connected to the other system using ssh. Now my question is how can I copy files from one system to another system? Suppose, in my environment, I have two ...
1
vote
2answers
669 views

Access Windows Share from local linux machine through remote ssh server

as you can read from the title, this question might sound tricky, but I believe it is feasible. I work from my Ubuntu laptop. I need to access a Windows share that is accessible only from within my ...
0
votes
1answer
1k views

Use remote ViM clipboard from iterm2 on Mac OS X

I have been using VNC for a long time for development and now I decided to move to iterm2 and screen. But there is a small problem. I have to ssh into a remote machine and use vim there. And I want ...
2
votes
0answers
479 views

Why is my /etc/hosts.deny file being ignored?

I am using a small embedded linux setup generated by buildroot to run on a x86 device. It was generated to use busybox init system and also runs dropbear so I can ssh into the device. I wanted to ...
4
votes
4answers
504 views

Continue for loop by keyboard

I have user account on a linux machine which I do not know its exact IP address. But I know a range which it is ran on one of them. I want to check which server is my desired server. There are some ...
1
vote
0answers
156 views

ssh log sent to email in Cygwin

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/...
16
votes
2answers
3k views

Will my MySQL query continue to run even if my ssh connection drops?

I've connected to a server over SSH and logged in to mysql, and asked it to run a query (the results of which are dumped into a CSV) that could take well over an hour. Although I have instructed my ...
1
vote
3answers
317 views

the difference between '..' and “..” when I use ssh usr@ip 'pscp …'

My Server machine run Window,and it installed Cygwin. My Client machine run linux. In Clinent machine.I do this: [sikaiwei@login-1-2 v1.4]$ bash test.sh CHUN~19900405 sikaiwei@192.168.9.102:/ifs2/...
2
votes
0answers
1k views

Get screenshots of a Linux machine that I connect to remotely with PuTTY

My setup is this, I connected my Cent box via PuTTY on windows 7, I've Xming and using X11forwarding to have GNOME in windows. Now when I did gnome-screenshot in putty, I cannot have the CentOS ...
1
vote
1answer
71 views

Get current output

This just crossed my mind. Let's say that I'm operating a remote machine via SSH and I executed a make command to, e.g. build a new kernel for my machine. While I'm logged in that session, I can see ...
5
votes
4answers
22k views

Not able to ssh to another computer, but can ping it?

Unable to ssh to another computer but can ping it? Not sure what I am missing? Using a Netgear router bash-3.2$ ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 :...
1
vote
1answer
253 views

Copy files via a complex ssh connection?

Suppose I have host A from which I ssh to host B, where I sudo -U some_role and from under it ssh to host C. My goal is an interactive shell on C. Assume that from C I cannot ssh back to A. What is ...
6
votes
2answers
5k views

How to Provide login delay in ssh

I wanted to provide login delay while login through ssh .I tried couple of ways of doing same but couldn't find desired result. I tried steps provided by given link. http://hostingfu.com/article/ssh-...
2
votes
2answers
153 views

SCP files from machineB to machineA

I am trying to scp the files from machineB to machineA. I need to run the scp command from machineA to copy files from machineB to machineA. The file that I need to copy from machineB is - /bat/...
7
votes
1answer
7k views

Command : must be run from a terminal

I have a shared hosting account, I logged using ssh. when I type for example su I had this output : su: must be run from a terminal Is this error relative to the fact that I don't have sufficient ...
2
votes
3answers
2k views

How to do svn update without password on crontab [closed]

I'm new to svn and ssh. I'm trying to do svn update of 5 repositories in my local system every 3 hours on crontab. So, to achieve this I have setup ssh passwordless login using the below steps: ...
0
votes
2answers
3k views

How to give password directly while doing ssh command?

I am using Putty to connect to host xxxxxx. I want to produce a shell script in which I should give the command ssh user@yyyyyy along with my password instead of giving it when prompted.
4
votes
1answer
683 views

Executing a remote command on SSH connection, before login

I am trying to find a way to execute a specific command when connecting to a server via SSH. By this I mean, the command will execute unconditionally on opening a connection, so this would preferably ...
3
votes
1answer
2k views

Download a file from a remote machine while SSH'd into it? [duplicate]

It often happens that I'm SSH'd into another machine and I'd like to download a file onto my local machine without having to open a new terminal and scp. For example, something like this: local $ ssh ...
3
votes
2answers
709 views

Auto restart ssh session after sleep

I have an active ssh session to a remote server that it would be nice to be able to restart upon waking from sleep/hibernate (ubuntu), and seamlessly restore tunnels. The Gnome Terminal window is ...
3
votes
2answers
1k views

Reconfiguring GNOME keyring daemon

I have a really strange problem when using GNOME keyring daemon. I had an old SSH key which I've now retired and started using a new, stronger keyfile. However, every time I attempt to SSH into one ...
1
vote
3answers
2k views

What are the commands to apply changes made to /etc/ssh/sshd_config?

I have made some changes to /etc/ssh/sshd file and wanted these effects should take place. I know I can run below command for the effects to take place. /etc/init.d/sshd reload But on my box I ...
2
votes
4answers
584 views

ssh ncat keeps ncat process running after disconnect; how do I prevent that?

If I run the command $ ssh othermachine ncat localhost 10000 that opens an ssh session to "othermachine" and pipes it into an ncat process. (There's something else listening on "othermachine" port ...
2
votes
2answers
4k views

Use SSH to connect to a Windows OS in Linux [closed]

In Windows machine, I installed Ubuntu in my Oracle VM VirtualBox. In Ubuntu, if I want to connect to another Linux machine: $ ssh username@ip But if I want to connect to my Windows machine, that ...
2
votes
0answers
158 views

SSH + Certificate Authority server?

Is it possible to setup SSH (via pam for instance) to check the public key of the connecting client against a CA server? I've tried with gnupg (via gpg-agent --daemon --enable-ssh-support) and also ...
4
votes
2answers
3k views

SSH connection refused from inside my LAN

I'm on Fedora 19 and I have a problem with ssh. Ssh is up and running and I can connect when I enter my lan ip. But when I try my server name (blahblah.no-ip.org) I get a connection refused. No-ip is ...
19
votes
8answers
19k views

How to rsync over ssh when directory names have spaces

I am new to Linux and am trying to rsync from one server to another. The servers have the same directory structure but I am having trouble getting the remotes server to properly recognize the path ...
8
votes
1answer
2k views

What happens to a continuing operation if we do ssh and then disconnect?

I am moving one directory to another using mv command. However, I was forced to shut down my computer, which means losing connection to the server. What happen to the mv command? Note: After I ...
3
votes
1answer
272 views

Why starting firefox (from command line) in VM starts the firefox in the host machine and vice-versa?

I have a SLED 10 host machine and I am using a SLES 10 VM via ssh -X. When I start firefox in my VM using firefox & then it runs the firefox which is installed in the VM. So that's fine. ...
0
votes
1answer
8k views

Why am I getting git error “remote: error: unable to create temporary file: No such file or directory” on push?

This problem is getting weirder. My original post follows, but here is the new thing I discovered: I executed git push and it gave me its usual error: Counting objects: 9, done. Delta ...
2
votes
1answer
2k views

undefined symbol in /usr/lib64/libGL.so.1 when using ssh

I frequently use ssh to a computer with redhat using the Y option so I can forward the windows. I always saw errors like this one /usr/lib64/firefox/firefox: symbol lookup error: /usr/lib64/libGL.so....
6
votes
1answer
2k views

ProxyCommand without socat, nc or Bash's TCP redirection?

ssh_config's ProxyCommand allows to establish some connection to a proxy prior to establishing the connection to the actual target machine. Simple question: how can I leverage the dynamic or SOCKS ...
5
votes
2answers
4k views

Kill disconnected SSH session running in `screen`

I'm always forgetting to logoff when ssh-ing somewhere. After I reopen my notebook, a screen window with this running ssh is unresponsive. I have to create another window, $ killall ssh, and only then ...
1
vote
2answers
551 views

Reverse socks5 using SSH

Setup: Server is a virtual machine Server have a local ip adress Server is restricted so that it can't reach the internet (not sure how) Client machine have access to both server via SSH Client ...
2
votes
2answers
495 views

Why I can't connect to VPS after changing OS from CentOS to Ubuntu?

Recently, I've changed my VPS operating system from CentOS to Ubuntu. Unfortunately since then I can't connect to my VPS. The following message comes again and again (screenshot attached). Why this ...
1
vote
0answers
297 views

sshfs and Emacs: file changed on the disk

I am using Mac 10.6.8 SSHFS version 2.4 fuse4x library version: FUSE 2.8.7 / fuse4x 0.9.2 I connect via sshfs to a remote cluster (via a bridge). I modify the remote files with emacs. The problem ...
0
votes
1answer
578 views

Changed /etc/ssh/sshd_config. Now can't get to SU. Am I screwed?

To allow one of my users ssh access I added the line AllowUsers user to my sshd_config. I gave the box a reboot and attempted to ssh back in as superuser. I was unable to do so. I have my keys- ...
-1
votes
2answers
73 views

How can I delete a file on client?

After copying files from /home/foo/bar the original files on the client must be deleted, EXCEPT for file /home/foo/bar/special_file. This file must remain on the client. I want to delete all the files ...
0
votes
2answers
15k views

How to copy only the files of a folder(including subfolder's files), but not the folder itself in shell

In Openssh, On the client, the content of path/to/file must be copied to Server. All files in /path/to/file on the client must be copied to /path/to/files on the server. Note: only copy files, no ...
0
votes
1answer
185 views

Process substitution over ssh with sudo in Bash shell

What is the proper way to do something like this: diff <( ssh -t myuser@hosta 'sudo httpd -M') <(httpd -M) When I want to compare the output of the 2 commands, the first on a remote host the ...
2
votes
1answer
746 views

How to terminate an interactive ssh session after certain amount of time

In my /etc/ssh/sshd_config file I have set the below parameters: ClientAliveInterval 10 ClientAliveCountMax 3 Now from host machine I did ssh to the my server (where I made changes to /etc/ssh/...
12
votes
3answers
6k views

Kill process spawned by ssh when ssh dies

This is a question that has been addressed several times, not only here, but also in other sites of the stack exchange network (e.g. http://stackoverflow.com/questions/331642/how-to-make-ssh-to-kill-...
2
votes
3answers
1k views

How to execute applications in existing X window from virtual console?

I run Debian Wheezy and have Xfce as my X-Window Manager on virtual console 7, which starts up automatically. Once I've logged on and I'm using the xfce interface, is it possible for me to press Ctrl+...
0
votes
1answer
169 views

SSH proxy laptop

I run a simple ssh proxy and I am always on the move with my laptop. Having to restart it every time I open the lid and connect to the internet. sshpass -p password ssh -D 9999 root@myvpsip Is it ...
3
votes
2answers
15k views

script to automate scp in network

I have a network full of Linux machines. In this network, I have a user as user1 with the password as password in all the machines. I have the following script to put files in the home directory of ...
4
votes
2answers
614 views

What effects does restarting sshd have on existing ssh sessions?

I've made some changes to the sshd_config. As I understand it, now I need to restart the sshd service. What happens to existing ssh sessions for the users? Any pointers to documentation I need to ...