I need to run a program from my windows xP machine thats installed on a remote UNIX machine using MobaXterm but I have very little experience with this sort of thing.
I can login into the machine using ssh and start the program without a problem. That program needs files that I have on my windows computer to process though and I want to copy them over to that remote machine. Unfortunately the drag-and-drop file transfer panel that is mentioned regularly on mobaxterm help sites isn't present and I can't figure out how to make it appear.
Could someone suggest how to get that drag-and-drop panel to appear please? I'm using MobaXterm version 3.0.
Alternatively any explanation on how to transfer these files another way would also be very much appreciated.
Thank you very much for any help you can give.
If it still doesn't work when you try all of above methods, try this:
when you creat a Session, change the Advanced SSH setting-->SSH-browser type to SCP, which default is SFTP.
. thanks to willfurnass
Some Linux distributions or some other Unix systems have disabled SSH password authentication by default.
In order for MobaXterm to be able to launch the SFTP browser, you will have to re-enable this feature:
Edit the "/etc/ssh/sshd_config" file on your server, and comment the following line:
PasswordAuthentication no
Restart your SSH server using the following command: /etc/init.d/sshd restart
Connect using MobaXterm SSH client and you will notice that the SFTP tab will be correctly launched.
If you can not modify your remote server configuration, you can also perform your file transfers inside MobaXterm terminal using SCP. A sample SCP command would be:
scp -r /drives/c/Some/Place/On/Your/Local/Windows/Drive/ yourlogin#yourserver:/Some/Place/On/Your/Remote/Unix/Server/
Ensure you have "Display SFTP Browser" enabled in your session settings under "Advanced SSH settings".
Occasionally it doesn't reappear, which is solved by a restart MobaXterm.
Another cause for the lack of sftp panel is if you accidentally enter and store a bad sftp password. MobaXterm then appears to attempt an automatic log in, but silently fails to open the sftp connection.
To fix this, go to Settings>MobaXterm passwords management and delete the offending password. Here's a screenshot of the settings page, showing the password management link.
To be clear, I had already run through the settings mentioned by #Nicolas and #Didier (thanks, guys!). I was able to get the sftp tab when ssh'ing in to other hosts (which didn't have bad passwords stored). And I had in the past seen the sftp pane. This fix solved my problem.
If you've never seen the sftp pane, then try the other suggestions first.
Have you tried:
Turning the program off and on again?
Note: I read this hint in a comment, which saved me from a tidious process of unnecessary fixing mobaXterm, also I am hence not the only one with that behavior. Even though this might be the first thing you already tried, some might not have been trying and haven't been lucky enough to read through the comments - this is for them.
For the most recent versions, ensure you have selected 'SFTP protocol' in the'SSH-browser' selector:
Related
I recently got SSVNC to connect a Windows VNC client to a Linux VNC server through a repeater with SSL encryption.
I am now trying to use SSVNC in Windows Command Prompt. What I have found so far online is that command line arguments are supported in Unix environments, but have not found the same documentation for Windows. So far the only command line argument that I have found for Windows ssvnc.exe is specifying the client, which is not adequate for what I am trying to do. In Unix, there is support for specifying a profile, so I opened one of those profile files in a text editor. This seemed like a possible option for what I am trying to do, but I am not sure if the Windows executable supports it/ haven't had success with it.
Basically what I am looking for is:
Is it possible to launch SSVNC with a batch file in Windows and have SSVNC establish an SSL connection between a Windows VNC client and Linux VNC server through a UVNC repeater?
Is it possible to launch SSVNC with a profile in Windows? This way I could specify certain settings before hand and SSVNC will handle the connection and launch a viewer.
Are there any other methods I have not thought of to make this work?
I have been able to make this work in a batch file. This took a few steps to get working.
To do so I had to launch a fresh instance of SSVNC. Then I populated all the fields with the necessary information and selected the options I needed in the Options and Advanced Options windows. After that I fetched and saved the SSL certificate. I saved this configuration as a new profile. I then restarted the SSVNC gui and loaded the profile, and most of the settings stuck. The connection was established and the VNC client launched.
To test that I could load it with a profile I opened Command Prompt and navigated to the directory that SSVNC is located. I issued the command "ssvnc.exe demo", demo being my profile name. This launched with (mostly) the correct settings and the SSL connection through the UVNC repeater was made and the VNC client launched fine.
After that, I made my batch file.
cd C:...\ssvnc\Windows
start ssvnc.exe demo
And this works
So I finished writing my first program and I'm trying to upload it to my sourceforge account, but the file size is to big to use the normal html5 upload manager sourceforge provides. Soursceforge says "For larger files, use FTP, SCP, or rsync". They also provided this page for references of what to commands to send via the command line like this one, which I had no idea how to use
scp file.zip jsmith#frs.sourceforge.net:/home/frs/project/fooproject/Rel_1
Should I be able to run this through the WinSCP.com prompt like so?
WinSCP> scp file.zip jsmith#frs.sourceforge.net:/home/frs/project/fooproject/Rel_1
Seeing as how the commandline kicked my but (I'm totally open to learning how to use the commandline for file transfer to sourceforge if you have any links to any tutorials, this one was too difficult to understand with all the broken English :/ ), I tried creating a connection with the WinSCP GUI and the following info
Host: myusername#frs.sourceforge.net
Username: MyUsername
Password: MyPassword
but I get the following error before the SCP connection is finished
Connection has been unexpectedly closed. Server sent command exist
status 1.
Error skipping startup message. Your shell is probably incompatible
with the application (bash is recommended).
Any help or a nudge in the right direction would be greatly appreciated. From what I've gathered I should learn more about shells, but I have no idea where to begin. Thanks in advance and cheers!
You are using SCP protocol with WinSCP. Make sure you use SFTP.
It appears that you're trying to do something weird with WinSCP. You're trying the "Open Terminal" option, which, I think just tries to open an ssh session at the host. But, we don't support ssh sessions to the frs.sourceforge.net
Normally, if you try to ssh to that host, you get this message:
Welcome!
This is a restricted Shell Account.
You can only copy files to/from here.
Connection to frs.sourceforge.net closed.
But I think WinSCP eats that, or something.
Anyway, I think what you need to do is just use WinSCP as a graphical two-pane sftp client. Navigate to the file to upload on the left, and to the destination directory on the right, etc.
In general, the best place to ask this kind of question is one of the three following:
The sourceforge channel on irc.freenode.net
Email support at sfnet_ops#geek.net
Open a ticket at https://sourceforge.net/p/forge/site-support/new/
While we do sort of monitor Stackoverflow, it's not our fastest support channel. I've asked one of our support engineers to take a look.
Here is how to connect:
select protocol SCP
Click Advanced
Environment --> SCP/Shell --> Shell (see 3 in red): change the shell that is available on the target server
It can connect to Windows 10's ssh server, with git bash
I am trying to work on a old script of mine that I was writing to backup file on my VMware server.
Originally the script was going to run on Linux only, but now I trying to figure out how to make it run on Windows. Most of the modules I need for perl will run on Windows and Linux which is good. But there is one module that I can't seem to find, which is an SSH module.
My plan was to use putty or plink to send commands to the server and return them to the script. But the problem that I see is every time I call putty in the script its going to open new connection to server and close it when it has finished. What I am looking for is a way to open a connection once its open leave it open and then send and receive from that one connection. Only having it close when the script calls a close function or something.
Any idea where I could being with something like this?
Unless someone else has a much better idea because I am open to anything.
There's quite a few SSH client modules from CPAN, such as Net::SSH, Net::SSH::Perl, and Net::SSH2.
You can also try using Expect
http://metacpan.org/pod/Expect
I'm used to editing my remote Ubuntu server through SSH and Nano. I've tried using Vim and Emacs but since I don't manage the server frequently enough I never quite get the hang of it and end up forgetting the commands.
I use TextMate daily for programming and was wondering if there's any counter-recommendation against mounting the server's /etc/ folder locally using http://www.macfusionapp.org/ and creating a TextMate project containing /etc/ and editing all configuration files right within?
root would have to be used through SSH to allow editing of the /etc/ files so that makes me a little nervous. Is this a bad approach?
I sometimes use Cyberduck to remotely edit files. You can set up SFTP connections in Cyberduck, so you can connect to any remote machine to which you have SSH access. Cyberduck lets you use TextMate as an external editor, so you can set up the connection and start editing, and Cyberduck will automatically upload your changes.
(This is probably possible in other FTP clients like Transmission, too, but I personally use Cyberduck so I don't know much about other clients.)
There's nothing wrong with using MacFUSE, but I find the Cyberduck solution to be simpler.
I used the command line "arp -s IP MAC" command to set a static ARP entry on Windows Server 2003. When I ran "arp -a" it was there as a "static" entry. When I restart, it is gone. Is there some file somewhere like lmhosts where I can make this absolutely permanent?
Thanks!
don't need to be in a domain. local group policy can do, or startup script. however, I found even if log off, the static entry will be gone
I don't think there is already support for persistent configuration of ARP entries. However, you should be able to create a boot script that does that every time.
In Group Policy, go to Computer Configuration\Windows Settings\Scripts, add a startup script.
I had a Windows Server 2003 which wasn't in a domain, so the above answer didn't apply to me, although it does work for a box in an AD. The below Autoexecnt.bat script worked for me (and works in XP, too):
http://support.microsoft.com/kb/243486