Complete beginner question...
Let's say I have SSH access to my website. And, I have a file:
mywebsite.com/foo/my_script.php
How can I use SSH to run my_script.php?
Oooops i just typed "ip link set eth0 down" while i was sshed into a server. that ssh session is now stuck for the timeout. Is there a key I can press to kill the ssh session with out waiting for the timeout?
If I ssh to a remote machine and then lose internet connectivity, the session freezes.
I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several minutes it will do so.
There must be some way to force it to abort the remote ssh session when connectivity is lost.
I'm on a Mac but I believe this…
I have a CentOS 5.5 server hosted in a remote data center. I usually access this server from a Red Hat Enterprise Linux 5 server using the ssh command. Now my organization has implemented a proxy server, this is not allowing me to connect to the VPS server.
I see the following error using the command root@<ip address>:-:
ssh:…
I am running VMware Fusion on my Mac (10.6) with an Ubuntu 9.10 (32 bit) VM for my development environment. How would I setup SSH to be able to SSH into the Ubuntu VM from the Mac? Also, when I am testing websites in browsers, how would I set it up so that I can go to the site on FF on the Mac and have it point to the site running on the…
I already have a reverse proxy setup for HTTP, and im now looking to add ssh and ftp to it.
i assume i can just copy the rules from the http list?
how do i go about forwarding the requests? id like to have ftp on port 1235 and ssh on 1236
I am using a MAC and using virtualbox to start a Redhat instance. The instance is started with two adapters (first being NAT, and second being host-only-adapter). The problem is that I am unable to SSH from my Mac to the virtualbox instance using the IP (I am able to ping the IP, though). I checked in the iptables and SSH is allowed…
Is there a way to forcibly terminate an SSH session in PuTTY, short of closing the PuTTY window?
For example, in OpenSSH, I can use the ~. escape sequence to kill the connection.
This is useful when the SSH session stops responding for some reason, but I don't want to lose any of my current session-specific settings. In that case,…
Ok I admit it...
I stupidly shutdown my remote server via ssh instead of restarting it like I wanted to do :(
To prevent me doing a silly again, is there a way to display a warning / confirmation on a shutdown command? (like "Are you sure you want to shut down this server?" yes/no )
OR, can I not allow shutting down (but not…
Ok, so I've been racking my brain for DAYS on this dilema. I have a VPC setup with a public subnet, and a private subnet. The NAT is in place of course. I can connect from SSH into a instance in the public subnet, as well as the NAT. I can even ssh connect to the private instance from the public instance. I changed the SSHD…
For development purposes I'm using www-data (on an ubuntu 11.10 server) to ssh in and fire git commands and basic stuff against the webroot.
I don't have things like command history, coloring, etc like I do when I ssh in as any other user, so I'm curious how to get this working.
I'm assuming I need a `.bashrc' file, but…
One of our developers worked on a beta server and accidentally changed the permissions of the whole system (chmod /) to root. Due to that, services are unable to access files, and we can't ssh to the machine (permission denied on the key) (UPDATE: ssh is dead after reboot, probably can't start).
Does Amazon has an option…
I have a CentOS 6.2 server.
Whenever some one logs into the server using the terminal (SSH) the user profile (.bash_profile) is loaded.
Now my question is, is there a profile that loads whenever you use SFTP to login into the server via "FTP browsing software" ( I use WinSCP ), I want to send an email whenever a user…
When I SSH into a Windows 2008 R2 box and try to run a command with switches like /cygdrive/c/directory/Reports.exe /ReportID=1 /DateRange=LastWeek the command just hangs and never finishes. I can see the Reports.exe spawn a process under the user but never finishes. If I RDP into the box open cygwin terminal and run…
If you have an ssh account and a hacker can get his hands on your account then the hacker can almost do anything on your server. Is it possible to limit a ssh account to access only on some specific directories with some limited privileges?
We changed the port number on the server to use something other than 22 and I'm unable to login using the command...
ssh 11.111.11.11:port
I've also tried using variations of
ssh 11.111.11.11 -p 1111
If I can't ssh as root to each of my servers how can I make modifications in an efficient way?
I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or spacewalk.
Sometimes when I try to include a sudo command in a script I get the error "no tty present." Has anyone…
I am trying to access my heroku app from work (windows machine).
I installed cygwin on the machine and generated ssh-key as well. However, I get the below error:
C:heroku keys:add
"C:\cygwin\home\4541450\mycoolemail@email.com"
Uploading ssh public key
C:\cygwin\home\4541450\mycoolemail@email.com
…
Hello all,
I'm trying to achieve the following:
I have two hosts A and B. A establishes a remote port forwarding tunnel on B, i.e. B is the one a port is forwarded on to some where else and A is the one that sets up the tunnel. I tried the script rforward.py that ships with paramiko and it works very well…
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: http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/
The issue is that upon executing the net…
For the sake of simplicity (I find it easier to remember names than arbitrary letters), I will dispense with letters and use names to refer to the machines in this scenario.
Say I have two machines, applejack and pinkie-pie, each on their own separate LANs and not in the same physical location. I…
I'm in the process of setting up my own DNS+hosting on a couple of VPS and my home machines, mostly for academic/learning purposes, but also for convenient accessing of my files, hosting my personal websites, private git repositories etc.
I've got a main web server with DNS, and a slave DNS…