Re: scp
Hi Kalin, Please try the following command, and let me know if you see any output from it. If so, please post it here. grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/+h8ACgkQ0sRouByUApB/wwCeJyWSvft0FsU+5KJNCNgj6ybQ xeMAoIKSPU8tZ5G8pKkJakAUMzcq71wR =CweV -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
On Thu, 23 Oct 2008 02:06:00 -0400, kalin m [EMAIL PROTECTED] wrote: grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago What about /var/log/auth.log? Maybe this file gives some information... -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
Polytropon wrote: On Thu, 23 Oct 2008 02:06:00 -0400, kalin m [EMAIL PROTECTED] wrote: grep sshd /var/log/messages | tail -20 i did that earlier.. the last record for sshd is from 10.14, more than a week ago What about /var/log/auth.log? Maybe this file gives some information... you were right Polytropon. ownership of the root directory for the user. it's not in home i was looking for something like sshd.log but it is auth.log.. thanks a lot to all now it's working... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
On 22Oct08 22:14, kalin m wrote: } I usually cheat and grab a copy of ssh-copy-id from the web; I suspect } your issue has to do with permissions for the .ssh directory and the } authorized_keys file. }permissions are 600 for the file and 700 for .ssh Permission of the remote user's home directory is another one to check. It can only be writable by the user. -- Callum Gibson @ home http://members.optusnet.com.au/callumgibson/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kalin m wrote: hi all... i need to do a script to copy a file from a remote machine via scp with a key and without a password here is what i'm doing: 1. ssh-keygen -t rsa 2. scp new_key.pub to [EMAIL PROTECTED] (with password) 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys when i try: # scp [EMAIL PROTECTED]:/files/file file i get password prompt... what am i missing?!? Hi Kalin, Here are a few things to try and check: - - Run scp with the -vvv flag to enable very verbose output. You may see something in the log messages during the connection phase that expose the problem. - - Check the /var/log/messages file on the host for debug messages from sshd. Are there any errors that indicate why public key authentication doesn't work? - - Check the /etc/ssh/sshd_config file contents. Is PubkeyAuthentication enabled? You can also change the LogLevel setting if you need more information emitted to /var/log/messages. Don't forget to send SIGHUP to sshd whenever you change sshd_config. - - Check the permissions on the the ~user/.ssh directory and the authorized_keys file. They have to be sufficiently tight (700 and 600, typically). Hope that helps, and post back here with any further questions. Regards, Greg Larkin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/2NQACgkQ0sRouByUApD3jACgnHA1h6XmnOuAEQXsnBjCcZBZ /k8An2AIMx4CJSXuTDfrPCcBlb9rLFqA =9z7a -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
On Oct 22, 2008, at 6:40 PM, kalin m wrote: hi all... i need to do a script to copy a file from a remote machine via scp with a key and without a password here is what i'm doing: 1. ssh-keygen -t rsa 2. scp new_key.pub to [EMAIL PROTECTED] (with password) 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys Should be authorized_keys. I usually cheat and grab a copy of ssh-copy-id from the web; I suspect your issue has to do with permissions for the .ssh directory and the authorized_keys file. -- Jay Chandler / KB1JWQ Living Legend / Systems Exorcist Today's Excuse: Budget cuts ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
Jay Chandler wrote: On Oct 22, 2008, at 6:40 PM, kalin m wrote: hi all... i need to do a script to copy a file from a remote machine via scp with a key and without a password here is what i'm doing: 1. ssh-keygen -t rsa 2. scp new_key.pub to [EMAIL PROTECTED] (with password) 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys Should be authorized_keys. it is. i just misspelled it in the message... I usually cheat and grab a copy of ssh-copy-id from the web; I suspect your issue has to do with permissions for the .ssh directory and the authorized_keys file. permissions are 600 for the file and 700 for .ssh the users are different on the local machine and remote_host. my guess is that if i point to the right key with -i it should work correct... now doing -vvv as Greg Larkin suggests... thanks... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
with -vvv i get this below: . debug1: bits set: 1034/2048 debug1: ssh_dss_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try pubkey: id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password debug3: authmethod_is_enabled keyboard-interactive debug1: next auth method to try is keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: userauth_kbdint: disable: no info_req_seen debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: debug3: authmethod_is_enabled password debug1: next auth method to try is password after this i get the password prompt why does it say try pubkey: id_rsa when id_rsa is supposed to be the private key? ?!?! Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kalin m wrote: hi all... i need to do a script to copy a file from a remote machine via scp with a key and without a password here is what i'm doing: 1. ssh-keygen -t rsa 2. scp new_key.pub to [EMAIL PROTECTED] (with password) 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys when i try: # scp [EMAIL PROTECTED]:/files/file file i get password prompt... what am i missing?!? Hi Kalin, Here are a few things to try and check: - - Run scp with the -vvv flag to enable very verbose output. You may see something in the log messages during the connection phase that expose the problem. - - Check the /var/log/messages file on the host for debug messages from sshd. Are there any errors that indicate why public key authentication doesn't work? - - Check the /etc/ssh/sshd_config file contents. Is PubkeyAuthentication enabled? You can also change the LogLevel setting if you need more information emitted to /var/log/messages. Don't forget to send SIGHUP to sshd whenever you change sshd_config. - - Check the permissions on the the ~user/.ssh directory and the authorized_keys file. They have to be sufficiently tight (700 and 600, typically). Hope that helps, and post back here with any further questions. Regards, Greg Larkin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/2NQACgkQ0sRouByUApD3jACgnHA1h6XmnOuAEQXsnBjCcZBZ /k8An2AIMx4CJSXuTDfrPCcBlb9rLFqA =9z7a -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kalin m wrote: with -vvv i get this below: . debug1: bits set: 1034/2048 debug1: ssh_dss_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent [...] after this i get the password prompt why does it say try pubkey: id_rsa when id_rsa is supposed to be the private key? ?!?! Hi Kalin, Don't worry about that message - I see the same thing here with an ssh connection that succeeds. The try pubkey message displays a private key file. Did you check the sshd_config file on the server and the /var/log/messages file for additional hints? If you see anything interesting, please post the output here. Also make sure that PubkeyAuthentication is enabled (on) in sshd_config. Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/63kACgkQ0sRouByUApAk/gCfTwdUyekSlWD2RFW1Bkmx57XH sbYAn0ArMnCOVybN/yomeu7XiOe+154f =MlC3 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
here is pretty much the same from another machine (os x laptop) with a dsa key: debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /private/var/root/.ssh/id_dsa (0x300e30) debug1: Authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering public key: /private/var/root/.ssh/id_dsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method == * why didn't we?!? debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password debug3: authmethod_is_enabled keyboard-interactive debug1: Next authentication method: keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive debug3: userauth_kbdint: disable: no info_req_seen debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: debug3: authmethod_is_enabled password debug1: Next authentication method: password kalin m wrote: with -vvv i get this below: . debug1: bits set: 1034/2048 debug1: ssh_dss_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: start over, passed a different list publickey,password,keyboard-interactive debug3: preferred publickey,keyboard-interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: next auth method to try is publickey debug1: try pubkey: id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug2: we did not send a packet, disable method debug3: authmethod_lookup keyboard-interactive debug3: remaining preferred: password debug3: authmethod_is_enabled keyboard-interactive debug1: next auth method to try is keyboard-interactive debug2: userauth_kbdint debug2: we sent a keyboard-interactive packet, wait for reply debug1: authentications that can continue: publickey,password,keyboard-interactive debug3: userauth_kbdint: disable: no info_req_seen debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: debug3: authmethod_is_enabled password debug1: next auth method to try is password after this i get the password prompt why does it say try pubkey: id_rsa when id_rsa is supposed to be the private key? ?!?! Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kalin m wrote: hi all... i need to do a script to copy a file from a remote machine via scp with a key and without a password here is what i'm doing: 1. ssh-keygen -t rsa 2. scp new_key.pub to [EMAIL PROTECTED] (with password) 3. on remote_host rename new_key.pub to ~user/.ssh/athorized_keys when i try: # scp [EMAIL PROTECTED]:/files/file file i get password prompt... what am i missing?!? Hi Kalin, Here are a few things to try and check: - - Run scp with the -vvv flag to enable very verbose output. You may see something in the log messages during the connection phase that expose the problem. - - Check the /var/log/messages file on the host for debug messages from sshd. Are there any errors that indicate why public key authentication doesn't work? - - Check the /etc/ssh/sshd_config file contents. Is PubkeyAuthentication enabled? You can also change the LogLevel setting if you need more information emitted to /var/log/messages. Don't forget to send SIGHUP to sshd whenever you change sshd_config. - - Check the permissions on the the ~user/.ssh directory and the authorized_keys file. They have to be sufficiently tight (700 and 600, typically). Hope that helps, and post back here with any further questions. Regards, Greg Larkin -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Re: scp
Hi Kalin, Don't worry about that message - I see the same thing here with an ssh connection that succeeds. The try pubkey message displays a private key file. Did you check the sshd_config file on the server and the /var/log/messages file for additional hints? If you see anything interesting, please post the output here. Also make sure that PubkeyAuthentication is enabled (on) in sshd_config. thanks Greg... its actually PubkeyAuthentication yes it's the default there is nothing in the messages log. and i don't see any openssh logs.. thanks... Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/63kACgkQ0sRouByUApAk/gCfTwdUyekSlWD2RFW1Bkmx57XH sbYAn0ArMnCOVybN/yomeu7XiOe+154f =MlC3 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kalin m wrote: Hi Kalin, Don't worry about that message - I see the same thing here with an ssh connection that succeeds. The try pubkey message displays a private key file. Did you check the sshd_config file on the server and the /var/log/messages file for additional hints? If you see anything interesting, please post the output here. Also make sure that PubkeyAuthentication is enabled (on) in sshd_config. thanks Greg... its actually PubkeyAuthentication yes it's the default there is nothing in the messages log. and i don't see any openssh logs.. thanks... Hi Kalin, Please try the following command, and let me know if you see any output from it. If so, please post it here. grep sshd /var/log/messages | tail -20 Regards, Greg -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkj/+h8ACgkQ0sRouByUApB/wwCeJyWSvft0FsU+5KJNCNgj6ybQ xeMAoIKSPU8tZ5G8pKkJakAUMzcq71wR =CweV -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp/sftp without interactive shell?
Ewald Jenisch wrote: [ ... ] Giving the user a shell of /bin/true or something similar on the target machine is not an option since scp doesn't seem to work in this case. Any ideas how this could be accomplished? Take a look at /usr/ports/shells/scponly, or rsh for restricted shells, more generally. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp/sftp without interactive shell?
Hello Ewald, Thursday, May 3, 2007, 5:07:33 PM, you wrote: Hi, I'm looking for a way to securely transfer files between machines using either scp or sftp without giving the user a login shell on the target machine. Put in another way: The user should be able to transfer files but must not have an interactive login shell on the target box. Giving the user a shell of /bin/true or something similar on the target machine is not an option since scp doesn't seem to work in this case. Any ideas how this could be accomplished? Thanks in advance for your help, -ewald Given your requirement, i would suggest installing pure-ftpd and puredb (from ports). With that you can create as many virtual users as you like, and restrict access/speed/etc to fit your needs. Your clients will connect over SSL FTP, which i assume is acceptable. A detailed guide is here: http://www.bsdguides.org/guides/freebsd/networking/pure-ftpd_virtual_users.php Hope this helps. -- Best regards, Ghirai. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp/sftp without interactive shell?
Ewald Jenisch wrote: Hi, I'm looking for a way to securely transfer files between machines using either scp or sftp without giving the user a login shell on the target machine. Have you tried ports/shells/scponly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP Delete
On Tue, 6 Feb 2007, Don O'Neil wrote: How do I delete a file after I've copied it with SCP? Is there some sort of secure 'rm' command? ssh allows you to execute many commands, one being rm. Example: ssh [EMAIL PROTECTED] rm /full/path/to/file; There's also gftp which can use ssh / sftp if you like GUI. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP Delete
How do I delete a file after I've copied it with SCP? Is there some sort of secure 'rm' command? ssh [EMAIL PROTECTED] 'rm /full/path/to/file' Should work. There's no srm (secure rm), you simply ssh to the machine and give it the command to execute. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP Delete
On Feb 6, 2007, at 3:12 PM, Don O'Neil wrote: How do I delete a file after I've copied it with SCP? Is there some sort of secure 'rm' command? Use rsync --delete via SSH. (Danger! Slippery when wet! Use with caution.) -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP Delete
On 2/6/07, Chuck Swiger [EMAIL PROTECTED] wrote: On Feb 6, 2007, at 3:12 PM, Don O'Neil wrote: How do I delete a file after I've copied it with SCP? Is there some sort of secure 'rm' command? Use rsync --delete via SSH. (Danger! Slippery when wet! Use with caution.) -- -Chuck I am not sure the rsync --delete is what the OP intended. rsync --delete will delete the file on the remote location if it no longer exists in the source location. The OP wanted to, as I understood it, delete the file from the source location after it was copied to the remote location. Probably the best bet would to be to have a script scp the files, do some sort of verification that they made it intact, and then do an ssh [EMAIL PROTECTED]/path/to/file as suggested earlier. HTH, Preston ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
On 2005-12-12 10:47, Joshua Lewis [EMAIL PROTECTED] wrote: From what i gather scp is a pull type method (for lack of a better term) I use scp from the computer I want the data pulled to. My problem is I am at a Windows XP system using putty and I can't pull the data because putty signs me into the freebsd system. So if I were to use SCP I would be pulling to the freebsd system becuase I am signed in with Putty right? So how do I sign on to freebsd and then scp the folder to the windows machine? more like a push. You use PSCP.EXE instead of PUTTY.EXE from a Windows' cmd prompt. That's probably awful, if you're looking for something with fancy, colourful GUI buttons, but it has certainly saved my a$$ a few times :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
Joshua Lewis wrote: So how do I sign on to freebsd and then scp the folder to the windows machine? more like a push. scp can push or pull. You just don't have a sshd running on your windows machine, so pushing back to it isn't possible. What you want is a version of sftp or scp for Windows, to allow you to pull from the remote host. On the PuTTY website, two such tools are available, pftp and pscp. You can download them here: distribution.http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -- James Bailie [EMAIL PROTECTED] http://www.jamesbailie.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
On 12/12/05, Giorgos Keramidas [EMAIL PROTECTED] wrote: You use PSCP.EXE instead of PUTTY.EXE from a Windows' cmd prompt. That's probably awful, if you're looking for something with fancy, colourful GUI buttons, but it has certainly saved my a$$ a few times :) http://winscp.net/ is a nice GUI scp and sftp client for Windows. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
Joshua Lewis wrote: From what i gather scp is a pull type method (for lack of a better term) I use scp from the computer I want the data pulled to. My problem is I am at a Windows XP system using putty and I can't pull the data because putty signs me into the freebsd system. So if I were to use SCP I would be pulling to the freebsd system becuase I am signed in with Putty right? So how do I sign on to freebsd and then scp the folder to the windows machine? more like a push. Any thoughts? Sorry if I seem abrupt I in a bit of a pickle. Thank you, Joshua Lewis Well, maybe it's abrupt; I don't see a clear description of the problem you are having, but it seems you want to perform an encrypted file transfer? You mention PuTTY; IIRC, Mr. Tatham had also written psftp, which came with a complete installation of PuTTY and enacted file transfer via SSH protocols on Windows. So, from the cmd shell on WinXP, you could utilize psftp to grab files from your FreeBSD server. psftp is probably also available (seperately) from the FTP site at: ftp://chiark.greend.org.uk/users/sgtatham That'd be a pull. There are plenty of other possibilities, I'd think, also. As an example, many Windows FTP clients support SFTP, which operates as an SSH subsystem on FreeBSD, and if you can use PuTTY to log in to a FBSD box, then you should be able to use one of these to pull data, as well. HTH, Kevin Kinsey -- Political speeches are like steer horns. A point here, a point there, and a lot of bull in between. -- Alfred E. Neuman ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
Giorgos Keramidas wrote: You use PSCP.EXE instead of PUTTY.EXE from a Windows' cmd prompt. That's probably awful, if you're looking for something with fancy, colourful GUI buttons, but it has certainly saved my a$$ a few times :) There's also filezilla, which I haven't used myself but have heard recommended. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
Thank you again to everyone on the list. I got the files moved. I really apreciate all responses and help. Thank you, Joshua Lewis James Bailie Joshua Lewis wrote: So how do I sign on to freebsd and then scp the folder to the windows machine? more like a push. scp can push or pull. You just don't have a sshd running on your windows machine, so pushing back to it isn't possible. What you want is a version of sftp or scp for Windows, to allow you to pull from the remote host. On the PuTTY website, two such tools are available, pftp and pscp. You can download them here: distribution.http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -- James Bailie [EMAIL PROTECTED] http://www.jamesbailie.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
On 2005-12-12 20:23, Svein Halvor Halvorsen [EMAIL PROTECTED] wrote: On 12/12/05, Giorgos Keramidas [EMAIL PROTECTED] wrote: You use PSCP.EXE instead of PUTTY.EXE from a Windows' cmd prompt. That's probably awful, if you're looking for something with fancy, colourful GUI buttons, but it has certainly saved my a$$ a few times :) http://winscp.net/ is a nice GUI scp and sftp client for Windows. Many thanks! I don't use Windows, unless I'm *REALLY* forced to do so, because I almost invariably find the whole experience extremely annoying and distracting from the work I really want to do, but this will be useful to know for any future occasions I'm forced to use Windows :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP!
Svein Halvor Halvorsen schrieb: On 12/12/05, Giorgos Keramidas [EMAIL PROTECTED] wrote: You use PSCP.EXE instead of PUTTY.EXE from a Windows' cmd prompt. That's probably awful, if you're looking for something with fancy, colourful GUI buttons, but it has certainly saved my a$$ a few times :) http://winscp.net/ is a nice GUI scp and sftp client for Windows. Yet another GUI which is my favourite: ftp://ftp.ssh.com/pub/ssh/SSHSecureShellClient-3.2.9.exe Free of charge for non-commercial use. Regards Björn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp stalling
Am Mittwoch, 23. März 2005 00:51 schrieb Bob Ababurko: Hello- I have two boxes that I am trying to transfer files between and for some reasson I am getting annoting slow transfers. I am running OpenSSH_3.8.1p1on the server end with freeBSD 5.3 and OpenSSH_3.5p1 with freeBSD 4.9 on the client end. The connection keeps stalling and I am not seeing any errors in /var/log/messages. The only sign is my loss of hair. How can I go about troubleshooting this? I have full control over these How are they conneted, in the same subnet and same switch or routed subnets or over some WAN links? Does ftp work? Also active FTP? -Harry boxen, so I can do whatever to fix this. thanks, Bob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] pgp0cDNU6SzOP.pgp Description: PGP signature
Re: SCP
On Tue, 24 Aug 2004 12:28:23 +0200, Spidey Knepscheld [EMAIL PROTECTED] wrote: Hi Guys I have to FreeBSD boxes next to each other and would like to copy a directory from the mail server to the firewall.I have root access to both the PC's.The directory on the mail server is /home/www/trafd and I would like to copy it to the fw to /usr/ports/net/ . Here is the command I tried : scp /home/www/trafd mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: /usr/trafd I think it's more like this: scp [EMAIL PROTECTED]:/path/to/remote/dir/* /path/to/local/dir/ i'm still pretty new at this but if i'm not mistaken root can't login remotely by default, so unless you've allowed that it'll fail. hope this helps ... august Please if someone can help Spidey ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP
* Spidey Knepscheld [EMAIL PROTECTED] [0828 11:28]: Hi Guys I have to FreeBSD boxes next to each other and would like to copy a directory from the mail server to the firewall.I have root access to both the PC's.The directory on the mail server is /home/www/trafd and I would like to copy it to the fw to /usr/ports/net/ . Here is the command I tried : scp /home/www/trafd mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]: /usr/trafd I assume the mailto link is sowe crap inserted by your mailer? Also there shouldn't be a space between the colon and the /usr/trafd, and you'd need a -r flag to recursively do it. Also , tell us what error you got - I'd assume you aren't allowed to ssh as root into 196.15.213.253 Please if someone can help try rsync, that's much faster than scp: rsync -vaz -e ssh /home/www/trafd [EMAIL PROTECTED]:/usr/trafd -- Q: How many Martians does it take to screw in a lightbulb? A: One and a half. Rasputin :: Jack of All Trades - Master of Nuns ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP fails while ssh works...
Are you using bash ? If ~/.bashrc generates ANY output, it WILL break the scp and rcp commands. Quintin twig les wrote: Hey all, I have to identical boxes running 4.6 and all of a sudden one stopped taking SCP even though it still takes ssh connections. The other box is still working fine and they are on the same subnet. The only thing I could find online about this is an MTU mismatch which makes no sense in this situation. I can bounce the sshd proc when I get someone on site since these are in a different state. The -v outputs are below, snipped for clari/brevity. Notice the bad guy's (booo, hiss hiss) inability to form a complete connection. GOOD CONNECTION: debug: SshConfig/sshconfig.c:2232/ssh2_parse_config: Unable to open /opt/home/ktokash/.ssh2/identification debug: Ssh2AuthClient/sshauthc.c:316/ssh_authc_completion_proc: Method 'publickey' disabled. debug: server offers auth methods 'publickey,password,keyboard-interactive'. debug: Ssh2AuthPasswdClient/authc-passwd.c:95/ssh_client_auth_passwd: Starting password query... [EMAIL PROTECTED]'s password: debug: Ssh2Common/sshcommon.c:286/ssh_common_special: Received SSH_CROSS_AUTHENTICATED packet from connection protocol. debug: Ssh2/ssh2.c:646/client_authentication_notify: Returning user input stream to original values. scp:SshFCTransfer/sshfc_transfer.c:1592/transfer_stat_before_rm_cb: No connection yet. Waiting... debug: Ssh2Common/sshcommon.c:829/ssh_common_new_channel: num_channels now 1 debug: SshTtyFlags/sshttyflags.c:354/ssh_internal_encode_tty_flags: Not a tty. (fd = 0) scp:SshFCTransfer/sshfc_transfer.c:1866/transfer_rm_dest: Removing destination file ./snortrules-stable.tar.gz . scp:SshFCTransferCore/sshfc_trcore.c:125/transfer_start: Starting transfer for file snortrules-stable.tar.gz, destination ./snortrules-stable.tar.gz snortrules-stable.tar.gz | 211kB | 211.2 kB/s | TOC: 00:00:01 | 100% scp:SshFCTransfer/sshfc_transfer.c:2489/transfer_one_done: Finished with file ./snortrules-stable.tar.gz. scp:Scp2/scp2.c:706/transfer_ready_cb: Received error SSH_FC_OK, error message . scp:Scp2/scp2.c:867/scp_transfer: Transfer ready scp:ssh_pipe_stream_destroy scp:SshAppCommon/sshappcommon.c:146/ssh_app_free_global_regex_context: Freeing global SshRegex context. debug: SshConnection/sshconn.c:405/ssh_conn_send_channel_data_type: EOF from channel stream cge01% debug: SshConnection/sshconn.c:667/ssh_conn_channel_write: EOF received on write from channel 0x207570, extended stream 0. debug: Ssh2ChannelSession/sshchsession.c:1716/ssh_channel_session_request_exit_status: received exit status : 0 debug: Ssh2Common/sshcommon.c:803/ssh_common_destroy_channel: num_channels now 0 debug: Got session close with exit_status=0 debug: destroying client struct... debug: Ssh2Client/sshclient.c:1478/ssh_client_destroy: Destroying client. debug: SshConfig/sshconfig.c:537/ssh_config_pki_free: Freeing pki. (host_pki != NULL, user_pki = NULL) debug: SshConnection/sshconn.c:1982/ssh_conn_destroy: Destroying SshConn object. debug: Ssh2Client/sshclient.c:1540/ssh_client_destroy_finalize: Destroying client completed. debug: SshAuthMethodClient/sshauthmethodc.c:89/ssh_client_authentication_uninitialize: Destroying authentication method array. debug: Ssh2/ssh2.c:363/sigpipe_nonfatal_cb: Received SIGPIPE. debug: SshAppCommon/sshappcommon.c:146/ssh_app_free_global_regex_context: Freeing global SshRegex context. debug: SshConfig/sshconfig.c:537/ssh_config_pki_free: Freeing pki. (host_pki = NULL, user_pki = NULL) BAD GUY (booo, hiss hiss): debug: SshConfig/sshconfig.c:2232/ssh2_parse_config: Unable to open /opt/home/ktokash/.ssh2/identification debug: Ssh2AuthClient/sshauthc.c:316/ssh_authc_completion_proc: Method 'publickey' disabled. debug: server offers auth methods 'publickey,password,keyboard-interactive'. debug: Ssh2AuthPasswdClient/authc-passwd.c:95/ssh_client_auth_passwd: Starting password query... [EMAIL PROTECTED]'s password: debug: Ssh2Common/sshcommon.c:286/ssh_common_special: Received SSH_CROSS_AUTHENTICATED packet from connection protocol. debug: Ssh2/ssh2.c:646/client_authentication_notify: Returning user input stream to original values. scp:SshFCTransfer/sshfc_transfer.c:1592/transfer_stat_before_rm_cb: No connection yet. Waiting... debug: Ssh2Common/sshcommon.c:829/ssh_common_new_channel: num_channels now 1 debug: SshTtyFlags/sshttyflags.c:354/ssh_internal_encode_tty_flags: Not a tty. (fd = 0) debug: Ssh2ChannelSession/sshchsession.c:2232/ssh_channel_start_session_completion2: starting session failed: result 0 scp:SshFCTransfer/sshfc_transfer.c:1592/transfer_stat_before_rm_cb: No connection yet. Waiting... scp:SshFCTransfer/sshfc_transfer.c:1592/transfer_stat_before_rm_cb: No connection yet. Waiting... scp:SshFCTransfer/sshfc_transfer.c:1592/transfer_stat_before_rm_cb: No connection yet. Waiting...
Re: SCP fails while ssh works...
Quintin Riis [EMAIL PROTECTED] writes: Are you using bash ? If ~/.bashrc generates ANY output, it WILL break the scp and rcp commands. And there's nothing about this specific to bash, either; on any shell, producing output from the startup scripts in a non-interactive shell WILL break the scp and rcp commands. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP fails while ssh works...
At 1:08 PM -0800 2/9/04, twig les wrote: Hey all, I have to identical boxes running 4.6 and all of a sudden one stopped taking SCP even though it still takes ssh connections. This may not help you at all, but every time I've had a problem where scp fails and ssh works, it has been because the userid on the remote side printed out some extra text while it was logging in. Something like 'Welcome to ' in the .bashrc, for instance. -- Garance Alistair Drosehn= [EMAIL PROTECTED] Senior Systems Programmer or [EMAIL PROTECTED] Rensselaer Polytechnic Instituteor [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP fails while ssh works...
Garance A Drosihn [EMAIL PROTECTED] writes: At 1:08 PM -0800 2/9/04, twig les wrote: Hey all, I have to identical boxes running 4.6 and all of a sudden one stopped taking SCP even though it still takes ssh connections. This may not help you at all, but every time I've had a problem where scp fails and ssh works, it has been because the userid on the remote side printed out some extra text while it was logging in. Something like 'Welcome to ' in the .bashrc, for instance. The solution to that type of problem is to have the text be printed only on interactive sessions. e.g.: if tty -s; then echo 'executing .bashrc' fi I thought once defined shell functions to do that for me, but they aren't in my startup files now... ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp between windows and freebsd
On Thu, 11 Dec 2003 07:20, KURT BUFF wrote: All, I'm following the directions here: http://www.unixwiz.net/techtips/postfix-exchange-users.html to improve the gateway to our Exchange box, and am stuck on a particular step. I just can't seem to make the Putty SCP work from my workstation. I used Putty's window copy function to paste into vi to create the .pub file, then used the command line: ssh-keygen -i -f /tmp/exchupdate.pub /root/.ssh/authorized_keys2 Later versions of OpenSSH expect all keys in authorized_keys including protocol level 2. Which version do you have? on the FreeBSD box per the instructions to convert to an openssh key, then use the following command line to do the copy: pscp -2 -i exchupdate.ppk exchusers.txt [EMAIL PROTECTED]:/etc Are you aware that by default sshd does not accept connections to user root? You must set this specifically in /etc/sshd_config. PermitRootLogin yes Possibly one of these (or both) is your problem. But then again it might be something quite different. Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: scp between windows and freebsd
Thank you Malcom! I've found that specifying another account (didn't want to enable remote root login) and putting either authorized_keys or authorized_keys2 into the proper directory worked like a champ. On to more and better work. Kurt | | On Thu, 11 Dec 2003 07:20, KURT BUFF wrote: | All, | | I'm following the directions here: | | http://www.unixwiz.net/techtips/postfix-exchange-users.html | | to improve the gateway to our Exchange box, and am stuck on | a particular | step. | | I just can't seem to make the Putty SCP work from my workstation. | | I used Putty's window copy function to paste into vi to | create the .pub | file, then used the command line: | | ssh-keygen -i -f /tmp/exchupdate.pub | /root/.ssh/authorized_keys2 | | | Later versions of OpenSSH expect all keys in authorized_keys including | protocol level 2. Which version do you have? | | on the FreeBSD box per the instructions to convert to an | openssh key, | then use the following command line to do the copy: | | pscp -2 -i exchupdate.ppk exchusers.txt [EMAIL PROTECTED]:/etc | | | Are you aware that by default sshd does not accept | connections to user root? | You must set this specifically in /etc/sshd_config. | PermitRootLogin yes | | Possibly one of these (or both) is your problem. But then again | it might be something quite different. | | Malcolm | ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: scp between windows and freebsd
From: KURT BUFF [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: scp between windows and freebsd Date: Wed, 10 Dec 2003 13:50:01 -0700 (MST) All, I'm following the directions here: http://www.unixwiz.net/techtips/postfix-exchange-users.html to improve the gateway to our Exchange box, and am stuck on a particular step. I just can't seem to make the Putty SCP work from my workstation. I used Putty's window copy function to paste into vi to create the .pub file, then used the command line: I've had better luck with http://winscp.sourceforge.net/eng/download.php In fact it's nice enough that I'd like to for my users to have something similar for their FreeBSD desktops, buy YMMV;-) good luck, ssh-keygen -i -f /tmp/exchupdate.pub /root/.ssh/authorized_keys2 on the FreeBSD box per the instructions to convert to an openssh key, then use the following command line to do the copy: pscp -2 -i exchupdate.ppk exchusers.txt [EMAIL PROTECTED]:/etc but I keep getting the following two messages on the Windows box: Authenticating with public key postfix update users key Fatal: Lost connection and the following on the FreeBSD box: server2 sshd[36802]: fatal: monitor_read: unsupported request: This, even though I've made certain to enter a edit the public key to add a comment (using vi) into the public key on the FreeBSD box. I've done some googling, and read some man pages, but can't seem to find out what the heck I'm doing wrong. I've put the authorized_keys2 file into /etc/ssh, /root/.ssh and even /root hoping that it was simply a matter of location, but still no go. Help? Thanks, Kurt ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] _ Wonder if the latest virus has gotten to your computer? Find out. Run the FREE McAfee online computer scan! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP where does the file xfer to?
DanB [EMAIL PROTECTED] writes: SCP where does the file xfer to? scp file.tar.gz [EMAIL PROTECTED] It's not enough to just give a username and a machine name. You need tell scp *where* on the remote machine you want the file put: $ scp file.tar.gz [EMAIL PROTECTED]:. The colon (':') seperates the hostname from the file path. If the colon isn't there, scp won't recognize the 2nd parameter as a target on a remote machine. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: SCP where does the file xfer to?
On Mon, Jul 28, 2003 at 11:45:08AM +, DanB typed: SCP where does the file xfer to? scp file.tar.gz [EMAIL PROTECTED] If this is really the command you used (without : after chatusa.com), check the directory you were in when you issued the command and look for a file called [EMAIL PROTECTED]. -Ruben Look in the directory for longterm it was not there. I transfered it as root. Dan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Re: scp+find, a little help please
Hello, Well, I tried both the standford tarballs and the ports' stuff. Both fail with this. Does anybody know what I need to do to fix this? ...Before I scrounge around in the code, that is... . Well, dunno, really - I didn't cvsup my ports and tried to build it, since I'm currently on site at a client where I can only get HTTP access. I only read about it on the ports mailing list - looks like some GNU automake fubar to me, wouldn't come too surprising. I suggest you take the good advice from Chuck and stick with rsync, which of course *does* synchronize directories and symlinks as well (and is a very popular solution for such things). Simply use rsync's archive mode (see manpage and Chuck's posting, -a), which implies -r for recursion. Cheers, Jan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp+find, a little help please
Hi there, Need to set up scp to copy only newer files and directories between two computers. The basic setup is like: scp -pr [EMAIL PROTECTED]: host2:/dir What would be a suitable find command here? Erm, newer than *what*? find needs a file as a comparison parameter to detetermine whether another file is newer than it or not. I assume you mean you want to copy only files from host1 to host2 which exist on both machines, with host1 potentially holding newer versions that should get synchronized to host2. Before you break your neck with (absolutely well possible) scripting solutions, I suggest you have a look at rsync, which uses SSH for transport by default now as well. Or maybe check out rdiff-backup, of which a port has just been submitted (AFAIK) if a backup is what you're after: http://rdiff-backup.stanford.edu/ Cheers, Jan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp+find, a little help please
Erm, newer than *what*? find needs a file as a comparison parameter to detetermine whether another file is newer than it or not. I assume you mean you want to copy only files from host1 to host2 which exist on both machines, with host1 potentially holding newer versions that should get synchronized to host2. Before you break your neck with (absolutely well possible) scripting solutions, I suggest you have a look at rsync, which uses SSH for transport by default now as well. Or maybe check out rdiff-backup, of which a port has just been submitted (AFAIK) if a backup is what you're after: Last time I looked at rsync it did not create new directories, perhaps that changed? Or maybe I'm completely wrong... I'll have a look at rdiff then. But as you say, it should be perfectly possible with scp too - Thanks, ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp+find, a little help please
Per olof Ljungmark wrote: [ ... ] Last time I looked at rsync it did not create new directories, perhaps that changed? Or maybe I'm completely wrong... I'll have a look at rdiff then. rsync -a should do what you've asked for, including creating new directories and dealing with symlinks properly. -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp+find, a little help please
On Tue, Jul 15, 2003 at 05:48:01PM +0200, [EMAIL PROTECTED] wrote: Hi there, Need to set up scp to copy only newer files and directories between two computers. The basic setup is like: scp -pr [EMAIL PROTECTED]: host2:/dir What would be a suitable find command here? Erm, newer than *what*? find needs a file as a comparison parameter to detetermine whether another file is newer than it or not. I assume you mean you want to copy only files from host1 to host2 which exist on both machines, with host1 potentially holding newer versions that should get synchronized to host2. Before you break your neck with (absolutely well possible) scripting solutions, I suggest you have a look at rsync, which uses SSH for transport by default now as well. Or maybe check out rdiff-backup, of which a port has just been submitted (AFAIK) if a backup is what you're after: http://rdiff-backup.stanford.edu/ Well, I tried both the standford tarballs and the ports' stuff. Both fail with this. Does anybody know what I need to do to fix this? ...Before I scrounge around in the code, that is... . thanks guys. gary === Building for librsync-0.9.5.1 cd . automake --gnu --include-deps Makefile Makefile.am:21: `#' comment at start of rule is unportable Makefile.am:22: `#' comment at start of rule is unportable Makefile.am:23: `#' comment at start of rule is unportable Makefile.am:24: `#' comment at start of rule is unportable automake: configure.in: required file `./depcomp' not found /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/local/share/automake/am/lang-compile.am: AMDEP does not appear in AM_CONDITIONAL gmake: *** [Makefile.in] Error 1 *** Error code 2 Stop in /usr/ports/net/librsync. *** Error code 1 -- Gary Kline [EMAIL PROTECTED] www.thought.org Public service Unix ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: scp GUI
Brian Henning wrote: does there exist a graphical insterface for performing client scp? thanks, http://www.appgate.com/mindterm/ -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp GUI
i am actually looking for a port for scp on bsd. any suggestions? - Original Message - From: Bill Moran [EMAIL PROTECTED] To: Brian Henning [EMAIL PROTECTED] Cc: freebsd [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 10:26 AM Subject: Re: scp GUI Brian Henning wrote: does there exist a graphical insterface for performing client scp? thanks, http://www.appgate.com/mindterm/ -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp GUI
On Tue, Feb 11, 2003 at 12:28:37PM -0600, Brian Henning wrote: i am actually looking for a port for scp on bsd. any suggestions? Errm, don't you have it anyway ? # type -p scp /usr/bin/scp -- Regards Cliff Sarginson The Netherlands [ This mail has been checked as virus-free ] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp GUI
On Tuesday 11 February 2003 21:54, Cliff Sarginson wrote: On Tue, Feb 11, 2003 at 12:28:37PM -0600, Brian Henning wrote: i am actually looking for a port for scp on bsd. any suggestions? Errm, don't you have it anyway ? # type -p scp /usr/bin/scp From what I can gather, they are looking for a GUI front end. If you are already using KDE, you can use Krusader (not in ports), http://krusader.sourceforge.net/, which is a Norton Commander like file manager that plugs into KDE and has built in SCP and SFTP functions. Will -- Willie Viljoen Freelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp and non-shell accounts.
On Wed, Jul 17, 2002 at 02:11:34PM -0700, Ken McGlothlen wrote: I have one system where my users have shell accounts and hang out on. This has an Apache server installed as a staging server. I have another system which is the production webserver. I want my users to be able to transfer files to the production webserver using scp or sftp, but not to have shell access on the production webserver. So on the production machine, each of these users has a home directory, and a shell of /sbin/nologin. Unfortunately as you've observed, that won't work. You have to have a valid shell in order to use scp or sftp. Do I really have to permit shell access for these accounts in order to use scp or sftp? No. You can get around that, but it's not particularly pretty. It's also probably not completely impervious to a clever hacker. You need to do the following: i) Insist that the only authentication method permitted for accessing the production server is via ssh public/private key pairs. Remove the password crypt text from /etc/master.passwd -- replace with '*' or somesuch, so password authentication is impossible. ii) Get your users to generate public/private key pairs. Install the public keys into the appropriate ${HOME}/.ssh/authorized-keys files, but use the forced command feature, by prefixing the line with command=scp -i ssh-rsa B3NzaC1y See the sshd(8) man page for some other authorized-keys options you may want to use. The exact entry you write into the forced command will depend on the setup of your system. Note that the command that is run is precisely as specified in the 'command=...' text, so unless you want your users to always copy the same files each time, you'll need to force running a shell script which can examine the SSH_ORIGINAL_COMMAND environment variable, verify that it is a permissible command and if so, execute it. Make sure the authorized-keys files and any containing directories up to the root directory are readable but not writable by the users. An alternative method is to not permit your users to do the copy themselves. Set up an area that your users can write to on the staging server which is a mirror of the document tree on the production server. Then set up a cron job to rsync from the staging to the production server at regular intervals to copy over you users' changes to production. Even better: have your users check their files into CVS, and have the production server check them out at regular intervals. That's a method used on a certain website that should be familiar to all readers here... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp and non-shell accounts.
Ken McGlothlen [EMAIL PROTECTED] writes: I want my users to be able to transfer files to the production webserver using scp or sftp, but not to have shell access on the production webserver. So on the production machine, each of these users has a home directory, and a shell of /sbin/nologin. The problem is, this seems to trounce scp and sftp. I get wibble@staging:~(1)$ scp transfer.txt wibble@prod:~ wibble@prod's password: [type password] This account is currently not available. [from /sbin/nologin] wibble@staging:~(2)$ sftp prod Connecting to prod... wibble@prod's password: [type password] Received message too long 173237622 wibble@staging:~(3)$ _ Do I really have to permit shell access for these accounts in order to use scp or sftp? You do have to permit shell access, but you can use a nice restrictive shell. I can't remember where I found it originally (Byron - If you're reading this can you post the location), but there is a shell out there called scponly. Using this means that scp functions work ok but a user cannot actually login to the machine. This I hope will suit your purpose? If you can't find it on google, mail me and I'll hunt out the URL. Regards, -- - Wayne Pascoe - http://www.penguinpowered.org.uk/wayne/ I'm from Iowa. I just work in space. Admiral Kirk - Star Trek IV To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: scp and non-shell accounts.
From: Wayne Pascoe [EMAIL PROTECTED] To: Ken McGlothlen [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: scp and non-shell accounts. Date: 18 Jul 2002 00:40:11 + Ken McGlothlen [EMAIL PROTECTED] writes: Do I really have to permit shell access for these accounts in order to use scp or sftp? You do have to permit shell access, but you can use a nice restrictive shell. I can't remember where I found it originally (Byron - If you're reading this can you post the location), but there is a shell out there called scponly. Using this means that scp functions work ok but a user cannot actually login to the machine. This I hope will suit your purpose? If you can't find it on google, mail me and I'll hunt out the URL. As we all have begun taking for granted :), the first hit from google: http://www.sublimation.org/scponly/ -- FreeBSD 4.6-STABLE 1:44AM up 1 day, 12:03, 8 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message